docs.rs failed to build vergen-0.0.12
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
vergen-9.0.0-beta.2
vergen
Includes 3 functions for use in version strings in lib.rs/main.rs
at compile time via a custom cargo build script.
Note: This currently only works for projects using git building on Linux or msys2. I haven't tested on Mac OS/X, but it will work if the date command exists. I plan to expand the functionality to additional platforms eventually.
Status
Basic Usage
Cargo.toml
[]
#
= "build.rs"
#
[]
= "*"
build.rs
use vergen;
lib.rs/main.rs
include!;
// The following is an exmaple. You could use now(), sha(), and semver() however you want.