-
-
Notifications
You must be signed in to change notification settings - Fork 17.5k
Description
Rust 1.84 includes a new target wasm32v1-none (https://doc.rust-lang.org/beta/rustc/platform-support/wasm32v1-none.html). This target could be used by some of the packages that are currently targeting wasm32-unknown-unknown, namely polkadot which I maintain (paritytech/polkadot-sdk#7008). I added the target to rustc by adding wasm32v1-none here. Unfortunately this did not work since the rustc build system will by default try to build docs for all targets, including docs for std which will fail for wasm32v1-none since it's a no-std target. To workaround this I tried building rustc with --disable-docs which worked and the wasm32v1-none worked correctly to build polkadot. Not sure how to tune the rustc build to only build docs for std targets.
cc @alyssais