mirror of
https://github.com/speice-io/marketdata-shootout
synced 2024-11-16 21:28:08 -05:00
17 lines
425 B
Rust
17 lines
425 B
Rust
|
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");
|
||
|
}
|