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
Hi thanks for the tool! However, it seems that wasm-pack does not understand overriden target-dir.
馃 Expected Behavior
no error
馃憻 Steps to reproduce
make a cargo workspace, and one or many cargo crate in it
in your crate, set .cargo/config.toml to:
[build]
target-dir = "target"
Run wasm-pack build in that crate
Then get:
error: failed reading '/Volumes/MyExternal/ExternalRefCode/flutter_rust_bridge/target/wasm32-unknown-unknown/debug/frb_example_pure_dart.wasm'
Caused by:
No such file or directory (os error 2)
Error: Running the wasm-bindgen CLI
Caused by: Running the wasm-bindgen CLI
Caused by: failed to execute `wasm-bindgen`: exited with exit status: 1
full command: "/Users/tom/.cargo/bin/wasm-bindgen" "/Volumes/MyExternal/ExternalRefCode/flutter_rust_bridge/target/wasm32-unknown-unknown/debug/frb_example_pure_dart.wasm" "--out-dir" "/Volumes/MyExternal/ExternalRefCode/flutter_rust_bridge/frb_example/pure_dart/web/pkg" "--no-typescript" "--target" "no-modules" "--out-name" "frb_example_pure_dart" "--debug"
Command: wasm-pack build -t no-modules -d /Volumes/MyExternal/ExternalRefCode/flutter_rust_bridge/frb_example/pure_dart/web/pkg --no-typescript --out-name frb_example_pure_dart --dev rust -- -Z build-std=std,panic_abort
It seems that wasm-pack is trying to find the files inside the workspace's target dir, while we have overriden the settings such that the .wasm is indeed generated in the custom directory.
馃實 Your environment
Include the relevant details of your environment.
wasm-pack version: latest
rustc version:
The text was updated successfully, but these errors were encountered:
馃悰 Bug description
Hi thanks for the tool! However, it seems that wasm-pack does not understand overriden target-dir.
馃 Expected Behavior
no error
馃憻 Steps to reproduce
.cargo/config.toml
to:wasm-pack build
in that crateThen get:
It seems that wasm-pack is trying to find the files inside the workspace's target dir, while we have overriden the settings such that the .wasm is indeed generated in the custom directory.
馃實 Your environment
Include the relevant details of your environment.
wasm-pack version: latest
rustc version:
The text was updated successfully, but these errors were encountered: