mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: make vergen emit cargo target triple (#2754)
This commit is contained in:
@ -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(())
|
||||
}
|
||||
|
||||
@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user