Skip to content

Commit

Permalink
build(cargo): Update vergen to v8 (#8325)
Browse files Browse the repository at this point in the history
**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).
  • Loading branch information
Redfire75369 committed Nov 23, 2023
1 parent 5d94418 commit 1315615
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 69 deletions.
75 changes: 9 additions & 66 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/swc_core/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ testing = { optional = true, version = "0.35.11", path
swc_plugin_runner = { optional = true, version = "0.104.29", path = "../swc_plugin_runner", default-features = false }

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

[dev-dependencies]
anyhow = "1.0.71"
4 changes: 2 additions & 2 deletions crates/swc_core/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use std::{
path::Path,
};

use vergen::{vergen, Config};
use vergen::EmitBuilder;

// Validate conflict between host / plugin features
#[cfg(all(
Expand Down Expand Up @@ -42,5 +42,5 @@ fn main() {

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

0 comments on commit 1315615

Please sign in to comment.