Skip to main content

Module version

Module version 

Source
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 -dirty suffix when the working tree had uncommitted changes), or "unknown" when git was unavailable.
PKG_VERSION
Crate semver from Cargo.toml.
RUSTC_VERSION
rustc version used to compile the binary, or "unknown".

Functions§

long_version
Returns the rich, multi-line version string shown by wt --version and wt -V. clap prefixes the first line with the binary name (wt).