-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
260 lines (190 loc) · 7.99 KB
/
Copy pathjustfile
File metadata and controls
260 lines (190 loc) · 7.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
# Remote dev. Provider mechanics live in ~/dev-machines.
ssh target:
@"$HOME/dev-machines/dev-machine" ssh rscrypto "{{ target }}"
ssh-check target:
@"$HOME/dev-machines/dev-machine" ssh rscrypto "{{ target }}" --check
ssh-create target *args="":
@"$HOME/dev-machines/dev-machine" create rscrypto "{{ target }}" {{ args }}
ssh-kill target:
@"$HOME/dev-machines/dev-machine" kill rscrypto "{{ target }}"
ssh-status target="":
@if [ -n "{{ target }}" ]; then "$HOME/dev-machines/dev-machine" status rscrypto "{{ target }}"; else "$HOME/dev-machines/dev-machine" status rscrypto; fi
ssh-bootstrap target:
@"$HOME/dev-machines/dev-machine" bootstrap rscrypto "{{ target }}"
ssh-aws-linux-x64:
@"$HOME/dev-machines/dev-machine" ssh rscrypto aws-linux-x64
ssh-aws-linux-arm64:
@"$HOME/dev-machines/dev-machine" ssh rscrypto aws-linux-arm64
ssh-aws-windows-x64:
@"$HOME/dev-machines/dev-machine" ssh rscrypto aws-windows-x64
ssh-azure-linux-x64:
@"$HOME/dev-machines/dev-machine" ssh rscrypto azure-linux-x64
ssh-azure-linux-arm64:
@"$HOME/dev-machines/dev-machine" ssh rscrypto azure-linux-arm64
ssh-azure-windows-x64:
@"$HOME/dev-machines/dev-machine" ssh rscrypto azure-windows-x64
ssh-azure-windows-arm64:
@"$HOME/dev-machines/dev-machine" ssh rscrypto azure-windows-arm64
ssh-aws-linux-x64-perf:
@"$HOME/dev-machines/dev-machine" ssh rscrypto aws-linux-x64-perf
ssh-aws-linux-intel-gnr-profile:
@"$HOME/dev-machines/dev-machine" ssh rscrypto aws-linux-intel-gnr-profile
ssh-aws-linux-intel-spr-profile:
@"$HOME/dev-machines/dev-machine" ssh rscrypto aws-linux-intel-spr-profile
ssh-aws-linux-amd-zen5-profile:
@"$HOME/dev-machines/dev-machine" ssh rscrypto aws-linux-amd-zen5-profile
ssh-aws-linux-amd-zen4-profile:
@"$HOME/dev-machines/dev-machine" ssh rscrypto aws-linux-amd-zen4-profile
ssh-aws-linux-arm64-graviton3-profile:
@"$HOME/dev-machines/dev-machine" ssh rscrypto aws-linux-arm64-graviton3-profile
ssh-aws-linux-arm64-graviton4-profile:
@"$HOME/dev-machines/dev-machine" ssh rscrypto aws-linux-arm64-graviton4-profile
ssh-azure-linux-intel-gnr-profile:
@"$HOME/dev-machines/dev-machine" ssh rscrypto azure-linux-intel-gnr-profile
ssh-azure-linux-intel-emr-profile:
@"$HOME/dev-machines/dev-machine" ssh rscrypto azure-linux-intel-emr-profile
ssh-azure-linux-amd-zen5-profile:
@"$HOME/dev-machines/dev-machine" ssh rscrypto azure-linux-amd-zen5-profile
ssh-azure-linux-amd-zen4-profile:
@"$HOME/dev-machines/dev-machine" ssh rscrypto azure-linux-amd-zen4-profile
ssh-azure-linux-arm64-cobalt-profile:
@"$HOME/dev-machines/dev-machine" ssh rscrypto azure-linux-arm64-cobalt-profile
ssh-azure-linux-arm64-ampere-profile:
@"$HOME/dev-machines/dev-machine" ssh rscrypto azure-linux-arm64-ampere-profile
ssh-azure-windows-amd-zen5-profile:
@"$HOME/dev-machines/dev-machine" ssh rscrypto azure-windows-amd-zen5-profile
ssh-azure-windows-intel-gnr-profile:
@"$HOME/dev-machines/dev-machine" ssh rscrypto azure-windows-intel-gnr-profile
ssh-azure-windows-arm64-profile:
@"$HOME/dev-machines/dev-machine" ssh rscrypto azure-windows-arm64-profile
ssh-aws-test-rdma:
@"$HOME/dev-machines/dev-machine" ssh rscrypto aws-test-rdma
ssh-azure-test-rdma:
@"$HOME/dev-machines/dev-machine" ssh rscrypto azure-test-rdma
# Builds
build:
cargo build --workspace --all-targets --all-features
build-release:
cargo build --workspace --all-targets --all-features --release
# Checks
check *args="":
@scripts/check/check.sh {{ args }}
check-all *args="":
@scripts/check/check-all.sh {{ args }}
check-feature-matrix:
@scripts/check/check-feature-matrix.sh
check-zeroize-evidence:
@scripts/check/zeroize-evidence.sh
ci-check:
@scripts/ci/ci-check.sh
test-feature-matrix:
@scripts/test/test-feature-matrix.sh
test-native-api:
cargo test --no-default-features --features 'alloc,aead,ed25519,x25519,ecdsa,ml-kem' --test api_consistency
cargo test --features 'aead,signatures,key-exchange,getrandom' --test api_consistency
cargo test --features 'signatures,key-exchange,getrandom' --test getrandom_smoke
# Tests
test *crates="":
@scripts/test/test.sh {{ crates }}
test-all:
@scripts/test/test.sh --all
test-miri *crates="":
@scripts/test/test-miri.sh {{ crates }}
test-rsa-leakage:
@scripts/test/test-rsa-leakage.sh
test-rsa-macos-asm:
@scripts/test/test-rsa-macos-asm.sh
test-fuzz *args="":
@scripts/test/test-fuzz.sh {{ args }}
test-fuzz-asan *args="":
@scripts/test/test-fuzz-asan.sh {{ args }}
# Constant-Time (CT) Validation Engine
ct *args="":
@scripts/ct/artifacts.sh {{ args }}
@scripts/ct/python.sh scripts/ct/validate.py {{ args }}
# Run DudeCT Timing Checks
ct-dudect *args="":
@scripts/ct/dudect.sh {{ args }}
# Build CT Artifacts; Run Timing Evidence; Emit CT Reports
ct-full *args="":
@scripts/ct/python.sh scripts/ct/full.py {{ args }}
# Run BINSEC; Manifest-Declared Binary CT Kernels
ct-binsec *args="":
@scripts/ct/python.sh scripts/ct/binsec.py {{ args }}
# Build CT Harness Artifacts
ct-artifacts *args="":
@scripts/ct/artifacts.sh {{ args }}
# Validate CT Manifest & Generated Artifacts
ct-validate *args="":
@scripts/ct/python.sh scripts/ct/validate.py {{ args }}
# Coverage
# Total Coverage: nextest + fuzz corpus replay
test-coverage:
@scripts/test/test-coverage.sh
# Nextest LCOV
test-nextest-coverage:
@scripts/test/test-coverage.sh --nextest
# Fuzz-corpus replay LCOV
test-fuzz-coverage:
@scripts/test/test-coverage.sh --fuzz
# Benches
# Results land in benchmark_results/<YYYY-MM-DD>/<os>/<arch>/results.txt
bench *args="":
@scripts/bench/bench.sh {{ args }}
bench-quick *args="":
@scripts/bench/bench.sh --quick {{ args }}
# Maintenance
# Release adapters not yet expressible as typed Cargo Rail release policy.
release-prepare:
cargo rail release check rscrypto --extended
cargo rail release run rscrypto --bump auto --yes --pr
cargo update --manifest-path tools/ct-harness/Cargo.toml -p rscrypto
cargo update --manifest-path tools/ct-dudect/Cargo.toml -p rscrypto
cargo update --manifest-path tools/ct-binsec-harness/Cargo.toml -p rscrypto
git add tools/ct-harness/Cargo.lock tools/ct-dudect/Cargo.lock tools/ct-binsec-harness/Cargo.lock
git diff --cached --quiet || git commit -m "workspace: sync CT tool locks for release"
git push
release-tag:
scripts/ci/repository-controls-evidence.sh \
--commit "$(git rev-parse HEAD)" \
--output target/repository-controls.json
scripts/ci/release-evidence-check.sh --commit "$(git rev-parse HEAD)"
cargo rail release finalize rscrypto --yes --skip-publish
# Update coordinated Cargo manifests
update:
@scripts/update/update-all.sh
update-check:
@scripts/update/update-all.sh --check
check-actions:
@scripts/ci/check-action-pins.sh
@scripts/ci/check-action-pins-test.sh
@scripts/ci/tool-integrity-test.sh
@scripts/ci/dependabot-smoke-test.sh
@scripts/ci/check-ci-ownership.sh
@scripts/ci/check-ci-ownership-test.sh
@scripts/ci/run-rust-job-test.sh
@scripts/test/test-fuzz-scheduler-test.sh
@scripts/ci/emit-manual-matrix-test.sh
@scripts/ci/changed-test-planning-test.sh
@scripts/ci/check-worktree-test.sh
@scripts/ci/pre-push-test.sh
@scripts/ci/release-evidence-check-test.sh
@scripts/ci/release-ct-recovery-check-test.sh
@scripts/ci/repository-controls-evidence-test.sh
@scripts/ci/release-identity-test.sh
@scripts/ci/publish-immutable-release-test.sh
@scripts/ci/release-recipes-test.sh
@actionlint
@zizmor .github/workflows .github/actions
push remote="origin":
@scripts/ci/pre-push.sh --light
git push --set-upstream "{{ remote }}" HEAD
push-full remote="origin":
@scripts/ci/pre-push.sh --full
git push --set-upstream "{{ remote }}" HEAD
# Assets
# Regenerate README Perf SVG from benchmark_results/OVERVIEW.md.
chart:
@mkdir -p target
@rustc --edition 2024 -O scripts/render_perf_chart.rs -o target/render_perf_chart
@target/render_perf_chart