Async-std: Please don't pull in wasm dependencies (via gloo-timers) on non-wasm platforms

Created on 26 Aug 2020  路  5Comments  路  Source: async-rs/async-std

async-std with the unstable feature enabled pulls in various wasm-specific dependencies via the gloo-timers dependency of futures-timer, even on non-wasm platforms. This adds quite a few dependencies, and shows up when building tide.

Most helpful comment

When I looked into this I was confused why this happens because in Cargo.toml it looks like the features are separated per target. I think it is related to https://github.com/rust-lang/cargo/issues/1197 .

All 5 comments

@joshtriplett agreed; we should fix that.

When I looked into this I was confused why this happens because in Cargo.toml it looks like the features are separated per target. I think it is related to https://github.com/rust-lang/cargo/issues/1197 .

Possible fix at https://github.com/async-rs/async-std/pull/864 doesn't rely on target-specific features and switches to a wasm feature, which would be semver-major for wasm users.

As far as I can tell, this issue also ends up interfering with the alloc feature

See also this older duplicate issue: https://github.com/async-rs/async-std/issues/823

fixed on master

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yoshuawuyts picture yoshuawuyts  路  5Comments

Licenser picture Licenser  路  8Comments

yoshuawuyts picture yoshuawuyts  路  6Comments

oblique picture oblique  路  5Comments

yoshuawuyts picture yoshuawuyts  路  6Comments