19 lines
706 B
Rust
19 lines
706 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
tonic_build::configure()
|
|
.build_client(true)
|
|
.build_server(false)
|
|
.compile(
|
|
&[
|
|
"investapi/src/docs/contracts/instruments.proto",
|
|
"investapi/src/docs/contracts/marketdata.proto",
|
|
"investapi/src/docs/contracts/operations.proto",
|
|
"investapi/src/docs/contracts/orders.proto",
|
|
"investapi/src/docs/contracts/sandbox.proto",
|
|
"investapi/src/docs/contracts/stoporders.proto",
|
|
"investapi/src/docs/contracts/users.proto",
|
|
],
|
|
&["investapi/src/docs/contracts/"],
|
|
)?;
|
|
|
|
Ok(())
|
|
}
|