marketdata-shootout/build.rs

20 lines
444 B
Rust
Raw Normal View History

extern crate capnpc;
use std::path::Path;
fn main() {
capnpc::CompilerCommand::new()
.src_prefix("")
.file("marketdata.capnp")
.output_path("src/")
2019-08-24 22:49:07 -04:00
.run()
.expect("Unable to compile capnpc");
flatc_rust::run(flatc_rust::Args {
inputs: &[Path::new("marketdata.fbs")],
out_dir: Path::new("src/"),
..Default::default()
2019-08-24 22:49:07 -04:00
})
.expect("Unable to compile flatc");
}