fix: make vergen emit cargo target triple (#2754)

This commit is contained in:
Bjerg
2023-05-19 19:25:27 +02:00
committed by GitHub
parent 3c2b591158
commit be2f66feee
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,11 @@ use vergen::EmitBuilder;
fn main() -> Result<(), Box<dyn Error>> {
// Emit the instructions
EmitBuilder::builder().git_sha(true).build_timestamp().cargo_features().emit()?;
EmitBuilder::builder()
.git_sha(true)
.build_timestamp()
.cargo_features()
.cargo_target_triple()
.emit()?;
Ok(())
}

View File

@ -52,5 +52,6 @@ pub(crate) const LONG_VERSION: &str = concat!(
/// ```text
/// reth/v{major}.{minor}.{patch}/{target}
/// ```
#[allow(dead_code)]
pub(crate) const P2P_VERSION: &str =
concat!("reth/v", env!("CARGO_PKG_VERSION"), "/", env!("VERGEN_CARGO_TARGET_TRIPLE"));