2023-09-17 00:31:43 +02:00
|
|
|
extern crate capnpc;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
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
|
|
|
}
|