emarsden / dash-mpd-rs

Rust library for parsing, serializing and downloading media content from a DASH MPD manifest.
MIT License
72 stars 23 forks source link

Exclude tokio from wasm builds #50

Closed pando-fredrik closed 8 months ago

pando-fredrik commented 8 months ago

Move the tokio dependency to allow the library to build (with --no-default-features) on wasm32.

emarsden commented 8 months ago

Thanks for pointing this out. In fact tokio should be an optional dependency; it's only needed when the fetch feature is enabled. Fixed in HEAD.

(Hopefully one day the crate will build for wasm with fetch support, but currently the reqwest crate doesn't support timeouts nor chunked downloads.)