Skip to content

Releases: rustyhorde/vergen

v5.0.1

19 Mar 14:49
5.0.1
6103baf
Compare
Choose a tag to compare
  • cargo minimum version updates

v5.0.0

16 Mar 21:08
5.0.0
22a2a26
Compare
Choose a tag to compare
  • Removed the deprecated gen in lieu of vergen
  • Removed ConstantsFlags in lieu of Config

v4.2.0

01 Mar 16:16
4.2.0
66d6b66
Compare
Choose a tag to compare
  • gen -> vergen. Deprecated gen entry point as a result of the ConstantsFlags deprecation.
  • ConstantsFlags -> Config. ContantsFlags was growing bloated and needed some extra logic, so migrated to a Config style.
  • Added some more configuration around date/time handling. You can now specify Local vs. UTC for time, and can output date only, time only, timestamp only, or and combination of the three, for date related instructions.

v4.1.0

24 Feb 00:09
4.1.0
59c6402
Compare
Choose a tag to compare
  • Added cargo feature to allow getting the target triple, profile, and current feature set at build time.
  • Updated some documentation

v4.0.3

19 Feb 14:16
4.0.3
70e2dc3
Compare
Choose a tag to compare
  • Updated rustc_version dependency to be at least version 0.3.1 to avoid compilation issues with llvm_version which was added then.

v4.0.2

15 Feb 13:56
4.0.2
d10481d
Compare
Choose a tag to compare
  • Removed some transitive dependencies from the git2 crate (specifically openssl-sys) via the default-features = false flag to allow for running on more diverse systems.

v4.0.1

15 Feb 00:51
4.0.1
862f1e8
Compare
Choose a tag to compare
  • Documentation updates

v4.0.0

14 Feb 21:22
4.0.0
2ab2bd5
Compare
Choose a tag to compare

Release 4.0 Breaking Changes

  • The main entry point for use has changed from generate_cargo_keys to gen
  • There are now 3 features that allow you to control what instructions can be generated (build, git, and rustc).
    • The build feature enables the VERGEN_BUILD_* instructions.
    • The git feature enables the VERGEN_GIT_* instructions, the cargo:rerun-if-changed instructions, and the REBUILD_ON_HEAD_CHANGE flag.
    • The rustc feature enables the VERGEN_RUSTC_* instructions.
    • By default, all three features are enabled.
    • You can build with all three features disabled, which basically make the gen function a no-op.
    • You can still use ConstantsFlags to toggle individual cargo instructions.
  • The generated instructions have been normalized. Therefore, you may need to update what env variable you are referring to in code. I've included a list below of the full set of instructions that can be generated for reference.
cargo:rustc-env=VERGEN_BUILD_DATE=2021-02-12
cargo:rustc-env=VERGEN_BUILD_TIMESTAMP=2021-02-12T01:54:15.134750+00:00
cargo:rustc-env=VERGEN_GIT_BRANCH=feature/git2
cargo:rustc-env=VERGEN_GIT_COMMIT_DATE=2021-02-11T20:05:53-05:00
cargo:rustc-env=VERGEN_GIT_SEMVER=v3.2.0-86-g95fc0f5
cargo:rustc-env=VERGEN_GIT_SEMVER_LIGHTWEIGHT=blah-33-g95fc0f5
cargo:rustc-env=VERGEN_GIT_SHA=95fc0f5d066710f16e0c23ce3239d6e040abca0d
cargo:rustc-env=VERGEN_GIT_SHA_SHORT=95fc0f5
cargo:rustc-env=VERGEN_RUSTC_CHANNEL=nightly
cargo:rustc-env=VERGEN_RUSTC_COMMIT_DATE=2021-02-10
cargo:rustc-env=VERGEN_RUSTC_COMMIT_HASH=07194ffcd25b0871ce560b9f702e52db27ac9f77
cargo:rustc-env=VERGEN_RUSTC_HOST_TRIPLE=x86_64-apple-darwin
cargo:rustc-env=VERGEN_RUSTC_LLVM_VERSION=11.0
cargo:rustc-env=VERGEN_RUSTC_SEMVER=1.52.0-nightly
cargo:rerun-if-changed=/Users/yoda/projects/rust-lang/vergen/.git/HEAD
cargo:rerun-if-changed=/Users/yoda/projects/rust-lang/vergen/.git/refs/heads/feature/git2
  • Under the hood, the Commands used for git have been removed in lieu of using the git2 library directly.
  • git2 is also used to determine the HEAD path and the path that it refers to for the cargo:rerun-if-changed instructions. This is more reliable then the manual method that was in place before.
  • I've migrated the CI stuff from Travis to GitHub Actions.

v3.2.0

09 Feb 15:48
v3.2.0
06ff172
Compare
Choose a tag to compare
  • Merged in pull request adding support for some rustc related flags.
  • Merged in pull request adding support for branch name.
  • Merged in pull request removing some trailing newlines.
  • Updated some 2018 edition stuff, add some deny lints, cleaned up some clippy lints.

Fix detached HEAD issue

08 Oct 22:10
Compare
Choose a tag to compare

When the repository is in a detached HEAD state, skip outputting the reference change cargo key, rather than erroring the build script.