diff --git a/Cargo.lock b/Cargo.lock index 1471a80fae..2dbd460d8e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3022,6 +3022,19 @@ version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" +[[package]] +name = "git2" +version = "0.18.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbf97ba92db08df386e10c8ede66a2a0369bd277090afd8710e19e38de9ec0cd" +dependencies = [ + "bitflags 2.4.1", + "libc", + "libgit2-sys", + "log", + "url", +] + [[package]] name = "glob" version = "0.3.1" @@ -4096,6 +4109,18 @@ dependencies = [ "cc", ] +[[package]] +name = "libgit2-sys" +version = "0.16.1+1.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2a2bb3680b094add03bb3732ec520ece34da31a8cd2d633d1389d0f0fb60d0c" +dependencies = [ + "cc", + "libc", + "libz-sys", + "pkg-config", +] + [[package]] name = "libloading" version = "0.8.1" @@ -4134,6 +4159,18 @@ dependencies = [ "redox_syscall 0.4.1", ] +[[package]] +name = "libz-sys" +version = "1.1.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "295c17e837573c8c821dbaeb3cceb3d745ad082f7572191409e69cbc1b3fd050" +dependencies = [ + "cc", + "libc", + "pkg-config", + "vcpkg", +] + [[package]] name = "linked-hash-map" version = "0.5.6" @@ -8810,6 +8847,12 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" +[[package]] +name = "vcpkg" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426" + [[package]] name = "vergen" version = "8.2.6" @@ -8817,6 +8860,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1290fd64cc4e7d3c9b07d7f333ce0ce0007253e32870e632624835cc80b83939" dependencies = [ "anyhow", + "git2", "rustversion", "time", ] diff --git a/bin/reth/Cargo.toml b/bin/reth/Cargo.toml index 72914170bb..b5e726cd38 100644 --- a/bin/reth/Cargo.toml +++ b/bin/reth/Cargo.toml @@ -153,7 +153,7 @@ optimism = [ ethereum = [] [build-dependencies] -vergen = { version = "8.0.0", features = ["build", "cargo", "git", "gitcl"] } +vergen = { version = "8.0.0", features = ["build", "cargo", "git", "git2"] } [[bin]] name = "reth" diff --git a/crates/storage/db/Cargo.toml b/crates/storage/db/Cargo.toml index d214405ded..d4802c3479 100644 --- a/crates/storage/db/Cargo.toml +++ b/crates/storage/db/Cargo.toml @@ -87,7 +87,7 @@ paste = "1.0" assert_matches.workspace = true [build-dependencies] -vergen = { version = "8.0.0", features = ["git", "gitcl"] } +vergen = { version = "8", features = ["git", "git2"] } [features] default = ["mdbx"]