Skip to content

Commit 0cd94e5

Browse files
merge main
2 parents 7d8bc0f + 6542c37 commit 0cd94e5

5 files changed

Lines changed: 479 additions & 89 deletions

File tree

.github/buildomat/jobs/falcon-lab.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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/*",

.github/buildomat/jobs/test-interop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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/*",

ddm-admin-client/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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,

justfile

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

0 commit comments

Comments
 (0)