mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-15 21:02:10 +03:00
6ba8c6c2ec
This enables a ReadableStream to be obtained for a file, which can then be handled with e.g. https://github.com/MattiasBuelens/wasm-streams let file: web_sys::File = ...; let stream = wasm_streams::readable::ReadableStream::from( file.stream() .unchecked_into::<wasm_streams::readable::sys::ReadableStream>(), ); WebIDL source: https://w3c.github.io/FileAPI/#blob-section Docs: https://developer.mozilla.org/en-US/docs/Web/API/Blob/stream |
||
---|---|---|
.. | ||
disabled | ||
enabled | ||
unavailable_option_primitive | ||
unstable |