Skip to content

Commit 1315615

Browse files
authoredNov 23, 2023
build(cargo): Update vergen to v8 (#8325)
**Description:** Updates `vergen` build dependency in `swc_core` to v8. This reduces the amount of dependency duplication. In my case in particular, it allows me to remove `syn` v1 from my [repository](https://github.com/redfire75369/spiderfire).
1 parent 5d94418 commit 1315615

File tree

3 files changed

+12
-69
lines changed

3 files changed

+12
-69
lines changed
 

‎Cargo.lock

+9-66
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎crates/swc_core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ testing = { optional = true, version = "0.35.11", path
369369
swc_plugin_runner = { optional = true, version = "0.104.29", path = "../swc_plugin_runner", default-features = false }
370370

371371
[build-dependencies]
372-
vergen = { version = "7.3.2", default-features = false, features = ["cargo"] }
372+
vergen = { version = "8.0.0", default-features = false, features = ["cargo"] }
373373

374374
[dev-dependencies]
375375
anyhow = "1.0.71"

‎crates/swc_core/build.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::{
55
path::Path,
66
};
77

8-
use vergen::{vergen, Config};
8+
use vergen::EmitBuilder;
99

1010
// Validate conflict between host / plugin features
1111
#[cfg(all(
@@ -42,5 +42,5 @@ fn main() {
4242

4343
// Attempt to collect some build time env values but will skip if there are any
4444
// errors.
45-
let _ = vergen(Config::default());
45+
let _ = EmitBuilder::builder().all_cargo().emit();
4646
}

0 commit comments

Comments
 (0)
Please sign in to comment.