File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22# :
33# : name = "falcon"
44# : variety = "basic"
5- # : target = "lab-2 .0-gimlet"
5+ # : target = "lab-3 .0-gimlet"
66# : skip_clone = true
77# : output_rules = [
88# : "/work/*",
Original file line number Diff line number Diff line change 22# :
33# : name = "test-interop"
44# : variety = "basic"
5- # : target = "lab-2 .0-gimlet"
5+ # : target = "lab-3 .0-gimlet"
66# : skip_clone = true
77# : output_rules = [
88# : "/work/*",
Original file line number Diff line number Diff line change @@ -20,9 +20,6 @@ progenitor::generate_api!(
2020 } ) ,
2121 replace = {
2222 TunnelOrigin = ddm_api_types_versions:: latest:: net:: TunnelOrigin ,
23- IpPrefix = ddm_api_types_versions:: latest:: net:: IpPrefix ,
24- Ipv4Prefix = ddm_api_types_versions:: latest:: net:: Ipv4Prefix ,
25- Ipv6Prefix = ddm_api_types_versions:: latest:: net:: Ipv6Prefix ,
2623 PeerInfo = ddm_api_types_versions:: latest:: db:: PeerInfo ,
2724 PeerStatus = ddm_api_types_versions:: latest:: db:: PeerStatus ,
2825 Duration = std:: time:: Duration ,
Original file line number Diff line number Diff line change 1+ # On illumos, only mg-tests (ztest-based) needs exclusion. On other
2+ # platforms, exclude all illumos-only crates.
3+ build_excludes := if os () == " illumos" {
4+ " "
5+ } else {
6+ " --exclude ddm --exclude ddmd --exclude falcon-lab --exclude lab"
7+ }
8+ test_excludes := build_excludes + " --exclude mg-tests"
9+
10+ # Build the workspace.
11+ build :
12+ cargo build --workspace {{ build_excludes }}
13+
14+ # Run cargo test for the workspace.
15+ test :
16+ cargo test --workspace {{ test_excludes }}
17+
18+ # Run cargo nextest for the workspace.
19+ nextest :
20+ cargo nextest run --workspace {{ test_excludes }}
21+
22+ # Type-check all targets.
23+ check :
24+ cargo check --all-targets
25+
26+ # Run clippy with warnings as errors.
27+ clippy :
28+ cargo clippy --all-targets -- --deny warnings
29+
30+ # Check formatting.
31+ fmt-check :
32+ cargo fmt --all --check
33+
34+ # Apply formatting.
35+ fmt :
36+ cargo fmt --all
37+
38+ # Generate OpenAPI specs (requires mgd to be built first).
39+ openapi-generate :
40+ cargo build --bin mgd
41+ cargo xtask openapi generate
42+
43+ # Verify OpenAPI specs are up to date.
44+ openapi-check :
45+ cargo xtask openapi check
46+
47+ # Run all verification checks.
48+ verify : clippy fmt-check openapi-check
You can’t perform that action at this time.
0 commit comments