-
Notifications
You must be signed in to change notification settings - Fork 27
Description
In this way, the tool chain version can be fixed.
https://rust-lang.github.io/rustup/concepts/toolchains.html
Reason:
The rust-pack uses wasm32-unknown-unknown, but this target is automatically enabled for functionality during version upgrades. The currently enabled features are enabled in all major browsers, but are mainly yoked to the LLVM side and may be enabled before they are supported in all browsers.
Therefore, it is necessary to manually enable them in wasm32v1-none or fix the version of rust.
As far as Cargo.lock is concerned, the one previous library is the wasm when multivalue is not enabled. However, when compiled with the current version of Rust, it is likely that the wasm will be changed, such as multivalue being enabled, so it is also necessary to mark this as a difference between versions.
ref:
https://rustwasm.github.io/docs/wasm-pack/prerequisites/non-rustup-setups.html
https://doc.rust-lang.org/stable/rustc/platform-support/wasm32v1-none.html
https://doc.rust-lang.org/stable/rustc/platform-support/wasm32-unknown-unknown.html#enabled-webassembly-features
https://developer.mozilla.org/en-US/docs/WebAssembly