You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> COMPILING_UNDER_CARGO_WEB=1 cargo build --target wasm32-unknown-unknown[...]error[E0433]: failed to resolve: use of undeclared type or module `wasm_bindgen`[...]
> cargo build --target wasm32-unknown-unknown[...]error[E0433]: failed to resolve: use of undeclared type or module `wasm_bindgen`[...]
> cargo clean
> cargo build --target wasm32-unknown-unknown[...] Finished dev [unoptimized + debuginfo] target(s) in 41.81s
Build scripts must use cargo:rerun-if-env-changed to declare the environment variables they depend on, otherwise Cargo will use the previously cached run.
Ah, my bad. I was under the interpretation that the build script was always run unless there was a "rerun-if" emitted, in which case it would trigger only when necessary.
What's the proper thing to do here? Would pushing a release with an updated build script suffice, or does the change have to be reverted? I'd like to avoid reverting if possible, since the intent behind the switch to begin with was to avoid cfg conflicts with other crates.
The default is to only rerun if any file changes, it doesn't track environment variables at all. A new release that prints the rerun-if line should work.
Build scripts must use
cargo:rerun-if-env-changed
to declare the environment variables they depend on, otherwise Cargo will use the previously cached run.From discussion on the community discord https://discord.com/channels/273534239310479360/274215136414400513/753183573145681940
The text was updated successfully, but these errors were encountered: