4 releases

0.1.3 Feb 18, 2026
0.1.2 May 9, 2025
0.1.1 Jan 15, 2025
0.1.0 Dec 8, 2024

#258 in WebAssembly

Download history 76/week @ 2025-12-19 32/week @ 2025-12-26 67/week @ 2026-01-02 19/week @ 2026-01-09 52/week @ 2026-01-16 47/week @ 2026-01-23 47/week @ 2026-01-30 62/week @ 2026-02-06 49/week @ 2026-02-13 79/week @ 2026-02-20 209/week @ 2026-02-27 197/week @ 2026-03-06 206/week @ 2026-03-13 215/week @ 2026-03-20 294/week @ 2026-03-27 379/week @ 2026-04-03

1,116 downloads per month
Used in 21 crates (4 directly)

MIT/Apache

6KB
110 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

~8–11MB
~194K SLoC