Repository navigation
Expand file tree
/
Copy pathjustfile
More file actions
114 lines (87 loc) · 2.99 KB
/
Copy pathjustfile
File metadata and controls
114 lines (87 loc) · 2.99 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
dev:
just fetch
just fmt
just codegen
just lint
just test
fetch:
uv sync
cargo fetch
fmt:
uvx ruff format
cargo fmt --all
lint:
uvx ruff check
cargo clippy --workspace --all-features --all-targets
test:
cargo test --workspace --all-features --all-targets
semver-checks:
cargo semver-checks
doc:
RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --open --no-deps --all-features
crawl:
cargo run -p xtask -- crawl update
spdx-check:
cargo run -p xtask -- spdx check
spdx-apply:
cargo run -p xtask -- spdx apply
link-license:
cargo run -p xtask -- link-license
link-license-check:
cargo run -p xtask -- link-license --check
codegen:
cargo run -p s3s-codegen
cargo fmt --all
cargo check
install-fs *ARGS:
cargo install --path crates/s3s-fs --locked {{ARGS}} --features binary --force
install-proxy *ARGS:
cargo install --path crates/s3s-proxy --locked {{ARGS}} --features minio --force
install-e2e *ARGS:
touch crates/s3s-e2e/build.rs
cargo install --path crates/s3s-e2e --locked {{ARGS}} --force
install-all:
cargo fetch
just install-fs --offline
just install-proxy --offline
just install-e2e --offline
coverage *ARGS:
cargo llvm-cov -p s3s -p s3s-chunked -p s3s-sigv2 -p s3s-sigv4 -p s3s-test -p s3s-time --all-features --html {{ARGS}}
# ------------------------------------------------
sync-version:
cargo set-version -p s3s 0.17.0
cargo set-version -p s3s-sigv2 0.17.0
cargo set-version -p s3s-sigv4 0.17.0
cargo set-version -p s3s-rfc2047 0.17.0
cargo set-version -p s3s-aws 0.17.0
cargo set-version -p s3s-model 0.18.0-alpha.1
cargo set-version -p s3s-policy 0.17.0
cargo set-version -p s3s-test 0.17.0
cargo set-version -p s3s-proxy 0.17.0
cargo set-version -p s3s-fs 0.17.0
cargo set-version -p s3s-e2e 0.17.0
cargo set-version -p s3s-http3 0.17.0-alpha.1
cargo set-version -p s3s-multipart 0.17.0
cargo set-version -p s3s-chunked 0.18.0-alpha.2
cargo set-version -p s3s-time 0.18.0-alpha.1
# ------------------------------------------------
assert_unchanged:
#!/bin/bash -ex
[[ -z "$(git status -s)" ]] # https://stackoverflow.com/a/9393642
ci-rust:
cargo fmt --all --check
cargo clippy --workspace --all-features --all-targets -- -D warnings
just test
just codegen
just assert_unchanged
ci-python:
uvx ruff format --check
uvx ruff check
# --- mutation testing (cargo-mutants) ------------------------------------------
# Sweeps cap the address space: a mutant can make a test allocate without limit.
# What the next sweep would run, without mutating anything.
mutants-plan budget="15":
cargo run -q -p xtask -- mutants plan --budget-minutes {{budget}}
# One budgeted sweep of the files that are due.
mutants-run budget="15" files="":
cargo run -q -p xtask -- mutants run --budget-minutes {{budget}} --files "{{files}}"