Files
foxhunt/tests/e2e/build.rs
jgrusewski 2da5bafc0e refactor: rename tli→fxt, delete legacy scripts/RunPod/deploy artifacts
- Rename tli/ directory to fxt/, update package + binary name to "fxt"
- Replace all `use tli::` → `use fxt::` across 52 Rust files
- Update build.rs proto paths (tli/proto → fxt/proto) in 6 services
- Update Dockerfiles, CI workflows, deploy.sh for new paths
- Delete ~170 legacy shell scripts (kept 15 essential ones)
- Delete RunPod Python client (runpod/), tests (tests/runpod/)
- Delete foxhunt-deploy crate (RunPod-only deployment tool)
- Delete terraform/runpod/ (moved to Scaleway)
- Delete ML Python hyperopt scripts (replaced by Rust Argmin PSO)
- Delete .gitlab-ci.yml (using GitHub + Gitea)
- Remove foxhunt-deploy from workspace members

504 files changed, -74,355 lines of legacy code removed.
Workspace compiles clean (0 errors, 0 warnings).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 10:32:21 +01:00

40 lines
1.6 KiB
Rust

use std::io::Result;
fn main() -> Result<()> {
// Build gRPC service definitions for E2E test clients (Tonic 0.14+)
//
// NOTE: Building TLI trading.proto separately to avoid naming conflicts
// with trading_service trading.proto (both define trading.proto but with different packages)
tonic_prost_build::configure()
.build_server(false) // We only need clients for E2E tests
.build_client(true)
.out_dir("src/proto")
// Suppress warnings in generated code
.server_mod_attribute(".", "#[allow(unused_qualifications)]")
.client_mod_attribute(".", "#[allow(unused_qualifications)]")
.compile_protos(
&[
"../../services/trading_service/proto/trading.proto",
"../../services/trading_service/proto/config.proto",
"../../services/trading_service/proto/risk.proto",
"../../services/ml_training_service/proto/ml_training.proto",
],
&[
"../../services/trading_service/proto",
"../../services/ml_training_service/proto",
],
)?;
// Build TLI protos separately (backtesting service uses TLI proto)
tonic_prost_build::configure()
.build_server(false)
.build_client(true)
.out_dir("src/proto")
.server_mod_attribute(".", "#[allow(unused_qualifications)]")
.client_mod_attribute(".", "#[allow(unused_qualifications)]")
.compile_protos(&["../../fxt/proto/trading.proto"], &["../../fxt/proto"])?;
println!("cargo:rerun-if-changed=../../services/");
Ok(())
}