Skip to main content

version_string

Function version_string 

Source
pub fn version_string() -> &'static str
Expand description

The version line clap appends after the binary name, e.g. 0.0.0 (git abc123, built 2026-06-01) — clap renders it as cardanowall 0.0.0 (git abc123, built 2026-06-01).

Returned as a &'static str so it can feed clap’s version attribute (which requires a value convertible to a static string). The components are all compile-time env! constants, so the line is assembled once and cached. The binary name is omitted here because clap prepends it.