Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
56 lines (44 loc) · 1.5 KB
/
Copy pathjustfile
File metadata and controls
56 lines (44 loc) · 1.5 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# justfile -- dev shortcuts that mirror what CI runs.
#
# Cargo invocations need no shell, so this file works on bash and PowerShell
# without a `set shell` directive. The toolchain is intentionally unpinned here;
# rust-toolchain.toml is the single source of truth.
#
# On a Windows host without the MSVC linker, prefix with the gnu toolchain:
# cargo +stable-x86_64-pc-windows-gnu ...
# Default: list available recipes.
default:
@just --list
# Format in place (local only; CI runs fmt-check instead).
fmt:
cargo fmt --all
# Mirrors CI `rustfmt`.
fmt-check:
cargo fmt --all -- --check
# Mirrors CI `clippy`.
lint:
cargo clippy --workspace --all-targets -- -D warnings
# Mirrors CI `test`.
test:
cargo test --workspace --all-targets
# Mirrors CI `msrv` (a plain build of the whole workspace).
build:
cargo build --workspace
# Mirrors CI `rustdoc`.
doc:
cargo doc --workspace --no-deps
# Mirrors `cargo audit` in .github/workflows/audit.yml.
audit:
cargo audit
# Mirrors `cargo deny` in .github/workflows/audit.yml.
deny:
cargo deny check
# Measure the round-trip invariant against a real host. CI runs the same binary
# against a local sshd with 10 ms of injected latency.
roundtrips host dir="/usr/include":
cargo run --release --example measure-roundtrips -- {{host}} {{dir}}
# Serve one alias, e.g. `just serve docs myhost /srv/docs`.
serve alias host base:
cargo run --bin ssh-browser -- serve {{alias}}={{host}}:{{base}}
# Composite local pre-push gate.
ci: fmt-check lint test