Files
foxhunt/crates/web-gateway/build.rs
jgrusewski 9c3d741a08 refactor: restructure repo — crates/, bin/, testing/ layout
Move 17 library crates into crates/, CLI binary into bin/fxt,
consolidate 10 test crates into testing/, split config crate
from deployment config files.

Root directory reduced from 38+ to ~17 directories.
All Cargo.toml paths and build.rs proto refs updated.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-25 11:56:00 +01:00

29 lines
1.2 KiB
Rust

fn main() -> Result<(), Box<dyn std::error::Error>> {
tonic_prost_build::configure()
.build_server(false)
.build_client(true)
.type_attribute(".", "#[derive(serde::Serialize, serde::Deserialize)]")
.client_mod_attribute(".", "#[allow(unused_qualifications)]")
.protoc_arg("--experimental_allow_proto3_optional")
.compile_protos(
&[
"../../bin/fxt/proto/trading.proto",
"../../bin/fxt/proto/health.proto",
"../../bin/fxt/proto/ml.proto",
"../../bin/fxt/proto/config.proto",
"../../bin/fxt/proto/ml_training.proto",
"../../bin/fxt/proto/trading_agent.proto",
],
&["../../bin/fxt/proto"],
)?;
println!("cargo:rerun-if-changed=../../bin/fxt/proto/trading.proto");
println!("cargo:rerun-if-changed=../../bin/fxt/proto/health.proto");
println!("cargo:rerun-if-changed=../../bin/fxt/proto/ml.proto");
println!("cargo:rerun-if-changed=../../bin/fxt/proto/config.proto");
println!("cargo:rerun-if-changed=../../bin/fxt/proto/ml_training.proto");
println!("cargo:rerun-if-changed=../../bin/fxt/proto/trading_agent.proto");
Ok(())
}