mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-06 13:02:55 +00:00
Re-export git-version from utils and remove as direct dep (#9138)
This commit is contained in:
10
Cargo.lock
generated
10
Cargo.lock
generated
@@ -1321,7 +1321,6 @@ dependencies = [
|
|||||||
"clap",
|
"clap",
|
||||||
"comfy-table",
|
"comfy-table",
|
||||||
"compute_api",
|
"compute_api",
|
||||||
"git-version",
|
|
||||||
"humantime",
|
"humantime",
|
||||||
"humantime-serde",
|
"humantime-serde",
|
||||||
"hyper 0.14.30",
|
"hyper 0.14.30",
|
||||||
@@ -3578,7 +3577,6 @@ dependencies = [
|
|||||||
"anyhow",
|
"anyhow",
|
||||||
"camino",
|
"camino",
|
||||||
"clap",
|
"clap",
|
||||||
"git-version",
|
|
||||||
"humantime",
|
"humantime",
|
||||||
"pageserver",
|
"pageserver",
|
||||||
"pageserver_api",
|
"pageserver_api",
|
||||||
@@ -3617,7 +3615,6 @@ dependencies = [
|
|||||||
"enumset",
|
"enumset",
|
||||||
"fail",
|
"fail",
|
||||||
"futures",
|
"futures",
|
||||||
"git-version",
|
|
||||||
"hex",
|
"hex",
|
||||||
"hex-literal",
|
"hex-literal",
|
||||||
"humantime",
|
"humantime",
|
||||||
@@ -3737,7 +3734,6 @@ dependencies = [
|
|||||||
"clap",
|
"clap",
|
||||||
"criterion",
|
"criterion",
|
||||||
"futures",
|
"futures",
|
||||||
"git-version",
|
|
||||||
"hex-literal",
|
"hex-literal",
|
||||||
"itertools 0.10.5",
|
"itertools 0.10.5",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
@@ -4307,7 +4303,6 @@ dependencies = [
|
|||||||
"fallible-iterator",
|
"fallible-iterator",
|
||||||
"framed-websockets",
|
"framed-websockets",
|
||||||
"futures",
|
"futures",
|
||||||
"git-version",
|
|
||||||
"hashbrown 0.14.5",
|
"hashbrown 0.14.5",
|
||||||
"hashlink",
|
"hashlink",
|
||||||
"hex",
|
"hex",
|
||||||
@@ -5139,7 +5134,6 @@ dependencies = [
|
|||||||
"desim",
|
"desim",
|
||||||
"fail",
|
"fail",
|
||||||
"futures",
|
"futures",
|
||||||
"git-version",
|
|
||||||
"hex",
|
"hex",
|
||||||
"humantime",
|
"humantime",
|
||||||
"hyper 0.14.30",
|
"hyper 0.14.30",
|
||||||
@@ -5702,7 +5696,6 @@ dependencies = [
|
|||||||
"futures",
|
"futures",
|
||||||
"futures-core",
|
"futures-core",
|
||||||
"futures-util",
|
"futures-util",
|
||||||
"git-version",
|
|
||||||
"humantime",
|
"humantime",
|
||||||
"hyper 0.14.30",
|
"hyper 0.14.30",
|
||||||
"metrics",
|
"metrics",
|
||||||
@@ -5730,7 +5723,6 @@ dependencies = [
|
|||||||
"diesel_migrations",
|
"diesel_migrations",
|
||||||
"fail",
|
"fail",
|
||||||
"futures",
|
"futures",
|
||||||
"git-version",
|
|
||||||
"hex",
|
"hex",
|
||||||
"humantime",
|
"humantime",
|
||||||
"hyper 0.14.30",
|
"hyper 0.14.30",
|
||||||
@@ -5783,7 +5775,6 @@ dependencies = [
|
|||||||
"either",
|
"either",
|
||||||
"futures",
|
"futures",
|
||||||
"futures-util",
|
"futures-util",
|
||||||
"git-version",
|
|
||||||
"hex",
|
"hex",
|
||||||
"humantime",
|
"humantime",
|
||||||
"itertools 0.10.5",
|
"itertools 0.10.5",
|
||||||
@@ -6715,6 +6706,7 @@ dependencies = [
|
|||||||
"criterion",
|
"criterion",
|
||||||
"fail",
|
"fail",
|
||||||
"futures",
|
"futures",
|
||||||
|
"git-version",
|
||||||
"hex",
|
"hex",
|
||||||
"hex-literal",
|
"hex-literal",
|
||||||
"humantime",
|
"humantime",
|
||||||
|
|||||||
@@ -9,7 +9,6 @@ anyhow.workspace = true
|
|||||||
camino.workspace = true
|
camino.workspace = true
|
||||||
clap.workspace = true
|
clap.workspace = true
|
||||||
comfy-table.workspace = true
|
comfy-table.workspace = true
|
||||||
git-version.workspace = true
|
|
||||||
humantime.workspace = true
|
humantime.workspace = true
|
||||||
nix.workspace = true
|
nix.workspace = true
|
||||||
once_cell.workspace = true
|
once_cell.workspace = true
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ bincode.workspace = true
|
|||||||
bytes.workspace = true
|
bytes.workspace = true
|
||||||
camino.workspace = true
|
camino.workspace = true
|
||||||
chrono.workspace = true
|
chrono.workspace = true
|
||||||
|
git-version.workspace = true
|
||||||
hex = { workspace = true, features = ["serde"] }
|
hex = { workspace = true, features = ["serde"] }
|
||||||
humantime.workspace = true
|
humantime.workspace = true
|
||||||
hyper = { workspace = true, features = ["full"] }
|
hyper = { workspace = true, features = ["full"] }
|
||||||
|
|||||||
@@ -92,6 +92,10 @@ pub mod toml_edit_ext;
|
|||||||
|
|
||||||
pub mod circuit_breaker;
|
pub mod circuit_breaker;
|
||||||
|
|
||||||
|
// Re-export used in macro. Avoids adding git-version as dep in target crates.
|
||||||
|
#[doc(hidden)]
|
||||||
|
pub use git_version;
|
||||||
|
|
||||||
/// This is a shortcut to embed git sha into binaries and avoid copying the same build script to all packages
|
/// This is a shortcut to embed git sha into binaries and avoid copying the same build script to all packages
|
||||||
///
|
///
|
||||||
/// we have several cases:
|
/// we have several cases:
|
||||||
@@ -131,7 +135,7 @@ macro_rules! project_git_version {
|
|||||||
($const_identifier:ident) => {
|
($const_identifier:ident) => {
|
||||||
// this should try GIT_VERSION first only then git_version::git_version!
|
// this should try GIT_VERSION first only then git_version::git_version!
|
||||||
const $const_identifier: &::core::primitive::str = {
|
const $const_identifier: &::core::primitive::str = {
|
||||||
const __COMMIT_FROM_GIT: &::core::primitive::str = git_version::git_version! {
|
const __COMMIT_FROM_GIT: &::core::primitive::str = $crate::git_version::git_version! {
|
||||||
prefix = "",
|
prefix = "",
|
||||||
fallback = "unknown",
|
fallback = "unknown",
|
||||||
args = ["--abbrev=40", "--always", "--dirty=-modified"] // always use full sha
|
args = ["--abbrev=40", "--always", "--dirty=-modified"] // always use full sha
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ crc32c.workspace = true
|
|||||||
either.workspace = true
|
either.workspace = true
|
||||||
fail.workspace = true
|
fail.workspace = true
|
||||||
futures.workspace = true
|
futures.workspace = true
|
||||||
git-version.workspace = true
|
|
||||||
hex.workspace = true
|
hex.workspace = true
|
||||||
humantime.workspace = true
|
humantime.workspace = true
|
||||||
humantime-serde.workspace = true
|
humantime-serde.workspace = true
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ anyhow.workspace = true
|
|||||||
async-stream.workspace = true
|
async-stream.workspace = true
|
||||||
clap = { workspace = true, features = ["string"] }
|
clap = { workspace = true, features = ["string"] }
|
||||||
futures.workspace = true
|
futures.workspace = true
|
||||||
git-version.workspace = true
|
|
||||||
itertools.workspace = true
|
itertools.workspace = true
|
||||||
once_cell.workspace = true
|
once_cell.workspace = true
|
||||||
pageserver_api.workspace = true
|
pageserver_api.workspace = true
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ license.workspace = true
|
|||||||
anyhow.workspace = true
|
anyhow.workspace = true
|
||||||
camino.workspace = true
|
camino.workspace = true
|
||||||
clap = { workspace = true, features = ["string"] }
|
clap = { workspace = true, features = ["string"] }
|
||||||
git-version.workspace = true
|
|
||||||
humantime.workspace = true
|
humantime.workspace = true
|
||||||
pageserver = { path = ".." }
|
pageserver = { path = ".." }
|
||||||
pageserver_api.workspace = true
|
pageserver_api.workspace = true
|
||||||
|
|||||||
@@ -29,7 +29,6 @@ dashmap.workspace = true
|
|||||||
env_logger.workspace = true
|
env_logger.workspace = true
|
||||||
framed-websockets.workspace = true
|
framed-websockets.workspace = true
|
||||||
futures.workspace = true
|
futures.workspace = true
|
||||||
git-version.workspace = true
|
|
||||||
hashbrown.workspace = true
|
hashbrown.workspace = true
|
||||||
hashlink.workspace = true
|
hashlink.workspace = true
|
||||||
hex.workspace = true
|
hex.workspace = true
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ chrono.workspace = true
|
|||||||
clap = { workspace = true, features = ["derive"] }
|
clap = { workspace = true, features = ["derive"] }
|
||||||
crc32c.workspace = true
|
crc32c.workspace = true
|
||||||
fail.workspace = true
|
fail.workspace = true
|
||||||
git-version.workspace = true
|
|
||||||
hex.workspace = true
|
hex.workspace = true
|
||||||
humantime.workspace = true
|
humantime.workspace = true
|
||||||
hyper.workspace = true
|
hyper.workspace = true
|
||||||
|
|||||||
@@ -15,7 +15,6 @@ const_format.workspace = true
|
|||||||
futures.workspace = true
|
futures.workspace = true
|
||||||
futures-core.workspace = true
|
futures-core.workspace = true
|
||||||
futures-util.workspace = true
|
futures-util.workspace = true
|
||||||
git-version.workspace = true
|
|
||||||
humantime.workspace = true
|
humantime.workspace = true
|
||||||
hyper = { workspace = true, features = ["full"] }
|
hyper = { workspace = true, features = ["full"] }
|
||||||
once_cell.workspace = true
|
once_cell.workspace = true
|
||||||
|
|||||||
@@ -20,7 +20,6 @@ chrono.workspace = true
|
|||||||
clap.workspace = true
|
clap.workspace = true
|
||||||
fail.workspace = true
|
fail.workspace = true
|
||||||
futures.workspace = true
|
futures.workspace = true
|
||||||
git-version.workspace = true
|
|
||||||
hex.workspace = true
|
hex.workspace = true
|
||||||
hyper.workspace = true
|
hyper.workspace = true
|
||||||
humantime.workspace = true
|
humantime.workspace = true
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ license.workspace = true
|
|||||||
aws-sdk-s3.workspace = true
|
aws-sdk-s3.workspace = true
|
||||||
either.workspace = true
|
either.workspace = true
|
||||||
anyhow.workspace = true
|
anyhow.workspace = true
|
||||||
git-version.workspace = true
|
|
||||||
hex.workspace = true
|
hex.workspace = true
|
||||||
humantime.workspace = true
|
humantime.workspace = true
|
||||||
serde.workspace = true
|
serde.workspace = true
|
||||||
|
|||||||
Reference in New Issue
Block a user