Module rav1e::version

source ·
Expand description

Version information

The information is recovered from Cargo.toml and git describe, when available.

use rav1e::version;
use semver::Version;

let major = version::major();
let minor = version::minor();
let patch = version::patch();

let short = version::short();

let v1 = Version::new(major, minor, patch);
let v2 = Version::parse(&short).unwrap();

assert_eq!(v1.major, v2.major);

Functions

  • Version information with the information provided by git describe --tags.
  • Commit hash (short)
  • Version information as presented in [package] version followed by the short commit hash if present.
  • Major version component
  • Minor version component
  • Patch version component
  • Version information as presented in [package] version.