- 13 commands with full gRPC implementations: service, train, tune, model, trade, broker, agent, data, risk, config, cluster, auth, backtest - Streaming support: train logs --follow, broker executions --follow - --json output on every command via OutputFormat/HumanReadable - Fix web-gateway monitoring URL default (50057 → 50051, API Gateway) - Rewire 7 remaining build.rs to consolidated proto/ root (web-gateway, backtesting_service, training_uploader, 3 test crates, e2e) - Fix web-gateway ml_training.proto new fields (mode, max_epochs, resume) - 75 fxt tests + 139 web-gateway tests, 0 clippy warnings, workspace clean Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
801 B
Rust
24 lines
801 B
Rust
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|
// Compile proto files for client testing (Tonic 0.14+)
|
|
tonic_prost_build::configure()
|
|
.build_server(false)
|
|
.build_client(true)
|
|
.compile_protos(
|
|
&[
|
|
"../../proto/trading.proto",
|
|
"../../proto/ml.proto",
|
|
"../../proto/config.proto",
|
|
"../../proto/health.proto",
|
|
],
|
|
&["../../proto"],
|
|
)?;
|
|
|
|
// Tell cargo to recompile if proto files change
|
|
println!("cargo:rerun-if-changed=../../proto/trading.proto");
|
|
println!("cargo:rerun-if-changed=../../proto/ml.proto");
|
|
println!("cargo:rerun-if-changed=../../proto/config.proto");
|
|
println!("cargo:rerun-if-changed=../../proto/health.proto");
|
|
|
|
Ok(())
|
|
}
|