rust-ipfs/http/build.rs

12 lines
548 B
Rust
Raw Normal View History

fn main() {
// vergen will generate build flags which will allow direct usage of env!(...) macro to find
// VERGEN_SHA_SHORT and others: https://docs.rs/vergen/3.0.4/vergen/
//
// the rebuild on each commit can be turned off:
// https://docs.rs/vergen/3.0.4/vergen/struct.ConstantsFlags.html#associatedconstant.REBUILD_ON_HEAD_CHANGE
vergen::generate_cargo_keys(vergen::ConstantsFlags::all())
.expect("Unable to generate the cargo keys!");
prost_build::compile_protos(&["src/keys.proto"], &["src"]).unwrap();
}