init plugins
This commit is contained in:
@@ -65,6 +65,21 @@ wasm-check:
|
||||
wasm-test:
|
||||
cd wasm/oxicloud-hash; cargo test --release
|
||||
|
||||
# Run the host plugin-runtime tests (compiles the Extism/wasmtime runtime).
|
||||
test-plugins:
|
||||
cargo test --features plugins
|
||||
|
||||
# Rebuild the committed plugin .wasm fixtures from wasm/oxicloud-plugin-hello/.
|
||||
# Requires the wasm32 target (devenv provides it; else `rustup target add
|
||||
# wasm32-unknown-unknown`). Commit the regenerated files; CI fails on drift.
|
||||
plugin-build:
|
||||
bash scripts/build-plugin-hello.sh
|
||||
|
||||
# fmt + clippy the example plugin crate (standalone workspace, wasm32 target).
|
||||
plugin-check:
|
||||
cd wasm/oxicloud-plugin-hello; cargo fmt --all
|
||||
cd wasm/oxicloud-plugin-hello; cargo clippy --target wasm32-unknown-unknown --release -- -D warnings
|
||||
|
||||
# audit security (condition: cargo install cargo-audit)
|
||||
audit:
|
||||
cargo audit
|
||||
|
||||
Reference in New Issue
Block a user