10 releases

0.3.7 May 19, 2025
0.3.6 May 9, 2025
0.3.5 Feb 13, 2025
0.3.4 Jan 27, 2025
0.1.0 Aug 14, 2024

#253 in WebAssembly

Download history 46/week @ 2025-02-19 57/week @ 2025-02-26 18/week @ 2025-03-05 71/week @ 2025-03-12 57/week @ 2025-03-19 20/week @ 2025-03-26 40/week @ 2025-04-02 9/week @ 2025-04-09 22/week @ 2025-04-16 8/week @ 2025-04-23 3/week @ 2025-04-30 155/week @ 2025-05-07 135/week @ 2025-05-14 86/week @ 2025-05-21 45/week @ 2025-05-28 22/week @ 2025-06-04

301 downloads per month
Used in 2 crates

MIT/Apache

40KB
1K SLoC

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

~9–18MB
~233K SLoC