aboutsummaryrefslogtreecommitdiffstats
path: root/justfile
diff options
context:
space:
mode:
authorDaniel Jankowski <daniel.jankowski@rub.de>2023-12-31 18:24:33 +0100
committerDaniel Jankowski <daniel.jankowski@rub.de>2023-12-31 18:24:33 +0100
commit250b0c98c5f8d31d74e724fadf9398d714236e64 (patch)
tree267e0d298ebc85d376b8b27e1e4441202bda4a10 /justfile
parentchore: bump version to v0.11.2 (diff)
downloadsl0pstatus-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--justfile8
1 files changed, 6 insertions, 2 deletions
diff --git a/justfile b/justfile
index a9468b5..2890eaf 100644
--- a/justfile
+++ b/justfile
@@ -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