Closed
Description
opened on Sep 4, 2019
Problem
cannot produce cdylib for the target wasm32-wasi
Steps
- Add "cdylib" to the Cargo.toml, e.g.
cargo new check-wasi && cd check-wasi echo "[lib]" >> Cargo.toml echo "crate-type = [\"cdylib\"]" >> Cargo.toml
- Build using
cargo +nightly build --target=wasm32-wasi
- Observe
error: cannot produce cdylib for `check-wasi v0.1.0` as the target `wasm32-wasi` does not support these crate types
Possible Solution(s)
Allow cdylib for all wasm32-* targets: it's available for wasm32-unknown-unknown and is required by wasm-pack
Activity