Skip to main content

get_version_info

Function get_version_info 

Source
pub fn get_version_info() -> VersionInfo
Expand description

Snapshots the build version, Rust toolchain, and Cargo version into a VersionInfo.

Reads the compile-time VERSION, RUST_VERSION, and CARGO_VERSION constants; this is what backs the vct version subcommand.

ยงExamples

let info = vibe_coding_tracker::get_version_info();
assert_eq!(info.version, vibe_coding_tracker::VERSION);