mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-11-23 23:27:57 +01:00
22 lines
646 B
Rust
22 lines
646 B
Rust
fn generate_api() {
|
|
println!("cargo:rerun-if-changed=schema");
|
|
let mut compile_command = ::capnpc::CompilerCommand::new();
|
|
compile_command
|
|
.src_prefix("schema")
|
|
.default_parent_module(vec!["schema".to_string()])
|
|
.file("schema/async_ops.capnp")
|
|
.file("schema/common.capnp")
|
|
.file("schema/instrument.capnp")
|
|
.file("schema/resources.capnp")
|
|
.file("schema/streaming.capnp")
|
|
.file("schema/stream.capnp")
|
|
.file("schema/tasks.capnp")
|
|
.file("schema/trace.capnp")
|
|
.run()
|
|
.expect("Failed to generate API code");
|
|
}
|
|
|
|
fn main() {
|
|
generate_api()
|
|
}
|