-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathJustfile
31 lines (23 loc) · 1004 Bytes
/
Justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
default:
just --list
test-package name *args:
#!/usr/bin/env bash
set -euxo pipefail
CARGO_TARGET_DIR=$(mktemp -d); export CARGO_TARGET_DIR
trap 'rm -rf "$CARGO_TARGET_DIR"' EXIT
cargo package -p "{{name}}" {{args}}
(cd $CARGO_TARGET_DIR/package/{{name}}-*/ && cargo test)
check: clippy check-no-default-features check-unsupported
clippy:
cargo clippy --workspace --tests --all-features --all-targets
check-no-default-features:
cargo clippy -p terminal-colorsaurus --no-default-features
check-unsupported:
RUSTFLAGS='--cfg terminal_colorsaurus_test_unsupported -Dwarnings' cargo clippy --workspace
doc name="terminal-colorsaurus":
cargo +nightly docs-rs -p {{name}}
update-locked-deps:
CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback cargo +nightly -Zmsrv-policy generate-lockfile
update-python-ci:
(cd crates/pycolorsaurus && maturin generate-ci github > ../../.github/workflows/python.yml)
git apply .github/workflows/python.yml.patch