mirror of
https://git.pumpin.online/funkpower/catena.git
synced 2026-10-23 03:07:13 +00:00
bindings: a C ABI and an npm package alongside the wheel
This commit is contained in:
@@ -18,6 +18,15 @@ cargo clippy --workspace --all-targets --all-features -- -D warnings
|
||||
say "tests"
|
||||
cargo test --workspace
|
||||
|
||||
# The WebAssembly build is only ever compiled for wasm32, so `--all-features`
|
||||
# above does not reach it: on any other target the module compiles to nothing.
|
||||
say "webassembly"
|
||||
if rustup target list --installed 2>/dev/null | grep -q wasm32-unknown-unknown; then
|
||||
cargo clippy -p catena --features wasm --lib --target wasm32-unknown-unknown -- -D warnings
|
||||
else
|
||||
echo "skipped: rustup target add wasm32-unknown-unknown"
|
||||
fi
|
||||
|
||||
say "docs"
|
||||
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps --quiet
|
||||
|
||||
|
||||
Reference in New Issue
Block a user