Paul van Tilburg
ab6001f072
* Add depend on the `vergen` crate (only use the `build`, `git` and `gitcl` features) * Add the build script `build.rs` to setup the environment variables from the build system
9 lines
252 B
Rust
9 lines
252 B
Rust
use std::error::Error;
|
|
use vergen::EmitBuilder;
|
|
|
|
fn main() -> Result<(), Box<dyn Error>> {
|
|
// Generate the `cargo:` instructions to fill the appropriate environment variables.
|
|
EmitBuilder::builder().all_build().all_git().emit()?;
|
|
|
|
Ok(())
|
|
}
|