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 10, 2018
1 parent 3ad0056 commit e94675e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ genmesh = "0.6"
ron = "0.4"

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

[[example]]
name = "hello_world"
Expand Down
16 changes: 4 additions & 12 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
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
);
});

for (k, v) in vergen.build_info() {
println!("cargo:rustc-env={}={}", k.name(), v);
}
fn main() -> failure::Fallible<()> {
vergen::generate_cargo_keys(ConstantsFlags::all())?;
Ok(())
}

0 comments on commit e94675e

Please sign in to comment.