8 releases

0.3.5 Feb 13, 2025
0.3.4 Jan 27, 2025
0.3.2 Nov 26, 2024
0.2.0 Oct 14, 2024
0.1.0 Aug 14, 2024

#630 in WebAssembly

Download history 7/week @ 2024-12-15 27/week @ 2024-12-22 1/week @ 2024-12-29 20/week @ 2025-01-05 229/week @ 2025-01-12 58/week @ 2025-01-19 169/week @ 2025-01-26 45/week @ 2025-02-02 139/week @ 2025-02-09 95/week @ 2025-02-16 38/week @ 2025-02-23 46/week @ 2025-03-02 33/week @ 2025-03-09 81/week @ 2025-03-16 33/week @ 2025-03-23 23/week @ 2025-03-30

172 downloads per month
Used in moq-web

MIT/Apache

23KB
578 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

~10–18MB
~234K SLoC