Skip to main content

reth_version_metadata

Macro reth_version_metadata 

Source
macro_rules! reth_version_metadata {
    () => { ... };
}
Expand description

Reth’s version metadata, stamped by the calling binary’s build script.

Version metadata changes with every commit, and the build timestamp with every build. Stamped in this crate, it would rebuild every crate that depends on this one. Instead, a binary calls reth_node_version_build::emit_version_metadata from its build script, and sets the result with try_init_version_metadata:

ⓘ
reth_node_core::version::try_init_version_metadata(reth_node_core::reth_version_metadata!())
    .expect("version metadata is set once, before anything reads it");