Skip to content
This repository has been archived by the owner on Apr 18, 2022. It is now read-only.

Commit

Permalink
Bump vergen version.
Browse files Browse the repository at this point in the history
  • Loading branch information
azriel91 committed Dec 13, 2018
1 parent a510bc9 commit 9fb5f03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Expand Up @@ -91,7 +91,7 @@ genmesh = "0.6"
ron = "0.4"

[build-dependencies]
vergen = "2.0"
vergen = "3.0"

[[example]]
name = "hello_world"
Expand Down
14 changes: 4 additions & 10 deletions build.rs
@@ -1,14 +1,8 @@
use vergen::{ConstantsFlags, Vergen};
use vergen::{self, ConstantsFlags};

fn main() {
let vergen = Vergen::new(ConstantsFlags::all()).unwrap_or_else(|e| {
panic!(
"Vergen crate failed to generate version information! {:?}",
e
);
});
vergen::generate_cargo_keys(ConstantsFlags::all())
.unwrap_or_else(|e| panic!("Vergen crate failed to generate version information! {}", e));

for (k, v) in vergen.build_info() {
println!("cargo:rustc-env={}={}", k.name(), v);
}
println!("cargo:rerun-if-changed=build.rs");
}

0 comments on commit 9fb5f03

Please sign in to comment.