Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ build *flags: (_target-installed target)
print-target:
@echo {{ _resolved_target }}

test: (_target-installed target)
test: (_target-installed target) _nextest-installed
cargo nextest run {{ _target-option }} --all-features --workspace

doctest:
Expand All @@ -81,3 +81,14 @@ _target-installed target:
if ! rustup target list --installed |grep -qF '{{ target }}' 2>/dev/null ; then
rustup target add '{{ target }}'
fi

_nextest-installed:
#!/usr/bin/env bash
set -euo pipefail
if cargo nextest --version >/dev/null 2>&1; then
exit 0
fi
if ! cargo install cargo-nextest --locked; then
echo "Latest cargo-nextest incompatible with current rustc; falling back to 0.9.128"
cargo install cargo-nextest --locked --version 0.9.128
fi
Loading