mirror of
https://github.com/project-gauntlet/gauntlet.git
synced 2025-12-23 10:35:53 +00:00
20 lines
472 B
Rust
20 lines
472 B
Rust
use vergen_gitcl::CargoBuilder;
|
|
use vergen_gitcl::Emitter;
|
|
use vergen_gitcl::GitclBuilder;
|
|
|
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
let gitcl = GitclBuilder::all_git()?;
|
|
let cargo = CargoBuilder::default()
|
|
.debug(true)
|
|
.features(true)
|
|
.opt_level(true)
|
|
.target_triple(true)
|
|
.build()?;
|
|
|
|
Emitter::default()
|
|
.add_instructions(&gitcl)?
|
|
.add_instructions(&cargo)?
|
|
.emit()?;
|
|
|
|
Ok(())
|
|
}
|