Random errors that are encountered, along with their respective fixes. This should be the first place to look when you encounter any difficulties.
Feel free to add to this when encountering any troubles.
-
issue:
Bindgen...cp: target/wasm32-unknown-unknown/release/scheduler.wasm: No such file or directory
on running deno_test.sh -
solution: make sure you run the script with your current working dir in root.
-
issue: wasm-bindgen is not installed but called from deno_test.sh
-
solution: install wasm-bindgen using
cargo install -f wasm-bindgen-cli
(make sure openssl and pkg-config are installed on your system first)
-
issue:
wasm-strip: command not found
message when running deno_test.sh -
proposed solution: install wasm-strip. Comes with 'wabt':
brew install wabt
. Confirmed to work on MacOS
-
issue:
wasm-opt: command not found
-
proposed solution: install wasm-opt:
cargo install wasm-opt --locked
- issue: when running cargo publish we get an error message
error: failed to verify package tarball
Caused by:
Source directory was modified by build.rs during cargo publish. Build scripts should not modify anything outside of OUT_DIR.
Added: <your_root_path>/target/package/zinzen-0.2.0/tests/rust_tests.rs
- solution: add the flag '--features skip-test-generation' to the publish command. For more information see ADR-001: Generation of end-to-end tests happens with a feature flag .