Skip to content

Commit c68985c

Browse files
committed
move to latest vergen
1 parent ee40da6 commit c68985c

File tree

7 files changed

+84
-30
lines changed

7 files changed

+84
-30
lines changed

Cargo.lock

Lines changed: 50 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ url = "2.5.4"
767767
usdt = "0.5.0"
768768
uuid = { version = "1.17.0", features = ["serde", "v4"] }
769769
uzers = "0.12"
770-
vergen = { version = "8.3.2", features = ["git", "git2"] }
770+
vergen-gitcl = { version = "1.0.8" }
771771
walkdir = "2.5"
772772
whoami = "1.5"
773773
wicket = { path = "wicket" }

dev-tools/omdb/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ workspace = true
99

1010
[build-dependencies]
1111
omicron-rpaths.workspace = true
12-
vergen.workspace = true
12+
vergen-gitcl.workspace = true
1313

1414
[dependencies]
1515
anyhow.workspace = true

dev-tools/omdb/build.rs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,25 @@
22
// License, v. 2.0. If a copy of the MPL was not distributed with this
33
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
44

5-
use vergen::EmitBuilder;
5+
use vergen_gitcl::Emitter;
6+
use vergen_gitcl::GitclBuilder;
67

78
fn main() {
89
// See omicron-rpaths for documentation. NOTE: This file MUST be kept in
910
// sync with the other build.rs files in this repository.
1011
omicron_rpaths::configure_default_omicron_rpaths();
1112

12-
EmitBuilder::builder()
13-
.all_git()
13+
// Define the `VERGEN_GIT_SHA` and `VERGEN_GIT_DIRTY` environment variables
14+
// (accessible via `env!()`) that note the current git commit and whether
15+
// the working tree is dirty at the time of this build.
16+
let gitcl = GitclBuilder::default()
17+
.sha(/* short= */ false)
18+
.dirty(/* include_untracked= */ false)
19+
.build()
20+
.expect("valid GitclBuilder configuration");
21+
Emitter::default()
22+
.add_instructions(&gitcl)
23+
.expect("valid instructions")
1424
.emit()
15-
.expect("failed to write vergen info");
25+
.expect("emitted version information");
1626
}

nexus/db-model/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ workspace = true
99

1010
[build-dependencies]
1111
omicron-rpaths.workspace = true
12-
vergen.workspace = true
12+
vergen-gitcl.workspace = true
1313

1414
[dependencies]
1515
anyhow.workspace = true

nexus/db-model/build.rs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,25 @@
22
// License, v. 2.0. If a copy of the MPL was not distributed with this
33
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
44

5-
use vergen::EmitBuilder;
5+
use vergen_gitcl::Emitter;
6+
use vergen_gitcl::GitclBuilder;
67

78
fn main() {
89
// See omicron-rpaths for documentation. NOTE: This file MUST be kept in
910
// sync with the other build.rs files in this repository.
1011
omicron_rpaths::configure_default_omicron_rpaths();
1112

12-
EmitBuilder::builder()
13-
.all_git()
13+
// Define the `VERGEN_GIT_SHA` and `VERGEN_GIT_DIRTY` environment variables
14+
// (accessible via `env!()`) that note the current git commit and whether
15+
// the working tree is dirty at the time of this build.
16+
let gitcl = GitclBuilder::default()
17+
.sha(/* short= */ false)
18+
.dirty(/* include_untracked= */ false)
19+
.build()
20+
.expect("valid GitclBuilder configuration");
21+
Emitter::default()
22+
.add_instructions(&gitcl)
23+
.expect("valid instructions")
1424
.emit()
15-
.expect("failed to write vergen info");
25+
.expect("emitted version information");
1626
}

workspace-hack/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ strum-754bda37e0fb3874 = { package = "strum", version = "0.27.2", features = ["d
129129
subtle = { version = "2.6.1" }
130130
syn-f595c2ba2a3f28df = { package = "syn", version = "2.0.106", features = ["extra-traits", "fold", "full", "visit", "visit-mut"] }
131131
thiserror = { version = "2.0.16" }
132-
time = { version = "0.3.36", features = ["formatting", "local-offset", "macros", "parsing"] }
132+
time = { version = "0.3.43", features = ["formatting", "local-offset", "macros", "parsing"] }
133133
tokio = { version = "1.47.0", features = ["full", "test-util"] }
134134
tokio-postgres = { version = "0.7.13", features = ["with-chrono-0_4", "with-serde_json-1", "with-uuid-1"] }
135135
tokio-rustls = { version = "0.26.0", default-features = false, features = ["logging", "ring", "tls12"] }
@@ -266,8 +266,8 @@ subtle = { version = "2.6.1" }
266266
syn-dff4ba8e3ae991db = { package = "syn", version = "1.0.109", features = ["extra-traits", "fold", "full", "visit"] }
267267
syn-f595c2ba2a3f28df = { package = "syn", version = "2.0.106", features = ["extra-traits", "fold", "full", "visit", "visit-mut"] }
268268
thiserror = { version = "2.0.16" }
269-
time = { version = "0.3.36", features = ["formatting", "local-offset", "macros", "parsing"] }
270-
time-macros = { version = "0.2.18", default-features = false, features = ["formatting", "parsing"] }
269+
time = { version = "0.3.43", features = ["formatting", "local-offset", "macros", "parsing"] }
270+
time-macros = { version = "0.2.24", default-features = false, features = ["formatting", "parsing"] }
271271
tokio = { version = "1.47.0", features = ["full", "test-util"] }
272272
tokio-postgres = { version = "0.7.13", features = ["with-chrono-0_4", "with-serde_json-1", "with-uuid-1"] }
273273
tokio-rustls = { version = "0.26.0", default-features = false, features = ["logging", "ring", "tls12"] }
@@ -282,7 +282,6 @@ url = { version = "2.5.4", features = ["serde"] }
282282
usdt = { version = "0.5.0" }
283283
usdt-impl = { version = "0.5.0", default-features = false, features = ["asm", "des"] }
284284
uuid = { version = "1.18.1", features = ["serde", "v4"] }
285-
vergen = { version = "8.3.2", features = ["cargo", "git", "git2", "rustc"] }
286285
winnow-ca01ad9e24f5d932 = { package = "winnow", version = "0.7.10" }
287286
x509-cert = { version = "0.2.5" }
288287
zerocopy-c38e5c1d305a1b54 = { package = "zerocopy", version = "0.8.26", default-features = false, features = ["derive", "simd"] }

0 commit comments

Comments
 (0)