2023-09-17 00:31:43 +02:00
|
|
|
fn main() {
|
2023-10-05 22:09:56 +02:00
|
|
|
#[cfg(feature = "capnp")]
|
|
|
|
{
|
|
|
|
extern crate capnpc;
|
|
|
|
|
|
|
|
capnpc::CompilerCommand::new()
|
|
|
|
.output_path("src/")
|
|
|
|
.src_prefix("schemas/")
|
|
|
|
.file("schemas/envelope.capnp")
|
|
|
|
.run()
|
|
|
|
.unwrap();
|
|
|
|
}
|
2023-09-19 08:31:13 +02:00
|
|
|
|
2023-09-23 18:21:39 +02:00
|
|
|
std::fs::create_dir_all("src/generated").unwrap();
|
|
|
|
let mut config = prost_build::Config::default();
|
|
|
|
config.out_dir("src/generated/");
|
|
|
|
|
|
|
|
config
|
|
|
|
.compile_protos(&["src/envelope.proto"], &["src/"])
|
|
|
|
.unwrap();
|
2023-09-17 00:31:43 +02:00
|
|
|
}
|