diff options
| author | Daniel Jankowski <daniel.jankowski@rub.de> | 2023-12-31 18:24:33 +0100 |
|---|---|---|
| committer | Daniel Jankowski <daniel.jankowski@rub.de> | 2023-12-31 18:24:33 +0100 |
| commit | 250b0c98c5f8d31d74e724fadf9398d714236e64 (patch) | |
| tree | 267e0d298ebc85d376b8b27e1e4441202bda4a10 /justfile | |
| parent | chore: bump version to v0.11.2 (diff) | |
| download | sl0pstatus-250b0c98c5f8d31d74e724fadf9398d714236e64.tar.gz sl0pstatus-250b0c98c5f8d31d74e724fadf9398d714236e64.tar.xz sl0pstatus-250b0c98c5f8d31d74e724fadf9398d714236e64.zip | |
chore: move from cargo-wasi to cargo-component and fix criterion
Diffstat (limited to 'justfile')
| -rw-r--r-- | justfile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -1,11 +1,15 @@ bench: - cargo wasi bench --features bench -- --color always | grep --color=never -v "Criterion.rs ERROR" + #!/usr/bin/env bash + benchmarks="$(cargo bench --target wasm32-wasi --features=bench --no-run --color=always 2>&1 | tee /dev/tty | grep -oP 'target/.*.wasm')" + + echo "$benchmarks" \ + | xargs -I{} wasmtime --dir $PWD/target::target {} --bench --color=always build: cargo build test: - cargo wasi test -- --nocapture + cargo component test -- --nocapture lint: cargo clippy --all-targets -- -D warnings |
