Files
foxhunt/testing/service-integration/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

24 lines
877 B
Rust

fn main() -> Result<(), Box<dyn std::error::Error>> {
// Compile TLI proto files for client testing (Tonic 0.14+)
tonic_prost_build::configure()
.build_server(false)
.build_client(true)
.compile_protos(
&[
"../../bin/fxt/proto/trading.proto",
"../../bin/fxt/proto/ml.proto",
"../../bin/fxt/proto/config.proto",
"../../bin/fxt/proto/health.proto",
],
&["../../bin/fxt/proto"],
)?;
// Tell cargo to recompile if proto files change
println!("cargo:rerun-if-changed=../../bin/fxt/proto/trading.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/health.proto");
Ok(())
}