# Rust 2024 Security-Hardened Toolchain Configuration for Foxhunt HFT System # # This configuration enables comprehensive Rust 2024 security features # optimized for high-frequency trading financial systems. [toolchain] channel = "1.78.0" # Latest stable with Rust 2024 features components = ["rustfmt", "clippy", "miri", "rust-src", "llvm-tools-preview"] targets = ["x86_64-unknown-linux-gnu"] profile = "default" # Rust 2024 Edition Security Features [profile.dev] # Enable debug assertions for development security validation debug-assertions = true # Overflow checks catch arithmetic vulnerabilities overflow-checks = true # LTO for better security analysis lto = "thin" [profile.release] # Production security configuration debug = 1 # Keep symbols for security monitoring debug-assertions = false # Disabled for performance in release overflow-checks = true # Keep overflow checks in financial systems lto = "fat" # Full LTO for maximum security optimization codegen-units = 1 # Single unit prevents TOCTOU between units panic = "abort" # Security: Prevent unwinding exploitation [profile.release-with-debug] # Security-hardened profile with debugging capabilities inherits = "release" debug = 2 strip = "none" [profile.security-audit] # Profile for security testing with all sanitizers inherits = "dev" # Sanitizers will be enabled via RUSTFLAGS