mirror of
https://github.com/speice-io/marketdata-shootout
synced 2026-05-01 05:20:19 -04:00
Compile schemas for Cap'n'Proto and Flatbuffers
This commit is contained in:
17
build.rs
Normal file
17
build.rs
Normal 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");
|
||||
}
|
||||
Reference in New Issue
Block a user