Expand description
Build and version metadata surfaced by wt --version / wt -V.
The plain semver alone is rarely enough to diagnose a report, so the version
output also carries the build commit, profile, toolchain, and timestamp
(issue #22). The raw facts are captured at compile time by build.rs and
exposed here as constants; long_version assembles them into the
multi-line string handed to clap.
Constants§
- BUILD_
PROFILE - Cargo build profile the binary was compiled with (e.g.
debug,release). - BUILD_
TIMESTAMP - UTC build timestamp (RFC-3339), or
"unknown". - COMMIT_
DATE - ISO-8601 committer date of the build commit, or
"unknown". - COMMIT_
HASH - Short Git commit hash at build time (with a
-dirtysuffix when the working tree had uncommitted changes), or"unknown"when git was unavailable. - PKG_
VERSION - Crate semver from
Cargo.toml. - RUSTC_
VERSION rustcversion used to compile the binary, or"unknown".
Functions§
- long_
version - Returns the rich, multi-line version string shown by
wt --versionandwt -V.clapprefixes the first line with the binary name (wt).