Compile schemas for Cap'n'Proto and Flatbuffers

This commit is contained in:
2019-08-18 19:45:47 -04:00
commit 0175a17269
10 changed files with 1437 additions and 0 deletions

17
build.rs Normal file
View File

@ -0,0 +1,17 @@
extern crate capnpc;
use std::path::Path;
fn main() {
capnpc::CompilerCommand::new()
.src_prefix("")
.file("marketdata.capnp")
.output_path("src/")
.run().expect("Unable to compile capnpc");
flatc_rust::run(flatc_rust::Args {
inputs: &[Path::new("marketdata.fbs")],
out_dir: Path::new("src/"),
..Default::default()
}).expect("Unable to compile flatc");
}