sanetrade/crates/tinkoff_invest/build.rs

20 lines
706 B
Rust
Raw Permalink Normal View History

2024-06-07 14:47:02 +00:00
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(())
}