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
wasm-pack build fails with the following when a Cargo.toml exists in a directory above the current.
🤔 Expected Behavior
The webassembly and javascript should have been placed in out/static
👟 Steps to reproduce
To reproduce have two Cargo.toml files like this:
project/Cargo.toml project/frontend/Cargo.toml
The frontend directory has the wasm target while the one above does not.
frontend/Cargo.toml contains the following lines:
[lib]
crate-type = ["cdylib", "rlib"]
from the frontend directory, run wasm-pack build
The error is this:
Error: crate-type must be cdylib to compile to wasm32-unknown-unknown. Add the following to your Cargo.toml file:
[lib]
crate-type = ["cdylib", "rlib"]
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version: git with rev 9f9634ca9ffa9147c044f947a31808f02715aa44
rustc version: 1.46.0
The text was updated successfully, but these errors were encountered:
🐛 Bug description
wasm-pack build
fails with the following when a Cargo.toml exists in a directory above the current.🤔 Expected Behavior
The webassembly and javascript should have been placed in
out/static
👟 Steps to reproduce
To reproduce have two Cargo.toml files like this:
project/Cargo.toml
project/frontend/Cargo.toml
The
frontend
directory has the wasm target while the one above does not.frontend/Cargo.toml
contains the following lines:from the
frontend
directory, runwasm-pack build
The error is this:
🌍 Your environment
Include the relevant details of your environment.
wasm-pack version: git with rev
9f9634ca9ffa9147c044f947a31808f02715aa44
rustc version:
1.46.0
The text was updated successfully, but these errors were encountered: