2 releases

0.1.1 May 9, 2025
0.1.0 Mar 23, 2025

#609 in WebAssembly

Download history 102/week @ 2025-03-21 14/week @ 2025-03-28 7/week @ 2025-04-04 12/week @ 2025-04-11 2/week @ 2025-04-18 2/week @ 2025-05-02 174/week @ 2025-05-09 79/week @ 2025-05-16 51/week @ 2025-05-23 65/week @ 2025-05-30 126/week @ 2025-06-06 128/week @ 2025-06-13 189/week @ 2025-06-20 117/week @ 2025-06-27

564 downloads per month
Used in 11 crates (3 directly)

MIT/Apache

8KB
190 lines

web-rs

Rust bindings to make WASM more tolerable.

Unstable API

Some crates use unstable web_sys APIs and you may need to set --cfg=web_sys_unstable_apis when compiling. For more information, see the web-sys docs.

There's a few ways to set this depending on the environment:

web-codecs

web-codecs provides a wrapper around the WebCodecs API.

The callbacks have been replaced with a channel-like API. For example, the VideoEncoder is split into a VideoEncoder for input and a VideoEncoded for output.

web-streams

web-streams provides a wrapper around the Streams API.

This API is annoyingly untyped when using web_sys. This library handles the casting for you as well as providing guard-rails around the API (ex. closing on Drop).

Dependencies

~0–10MB
~82K SLoC