[env] # SQLx offline mode - use cached query metadata from .sqlx/ directory # Generated with: cargo sqlx prepare --workspace SQLX_OFFLINE = "true" [build] rustflags = [ "-D", "unsafe_op_in_unsafe_fn", "-D", "clippy::undocumented_unsafe_blocks", "-W", "rust_2024_idioms", "-C", "force-frame-pointers=yes", # REMOVED: "-C", "stack-protector=strong", # Not compatible with coverage tools "-C", "relocation-model=pic", ] [target.x86_64-unknown-linux-gnu] linker = "clang" rustflags = [ "-C", "link-arg=-Wl,-z,relro,-z,now", "-C", "link-arg=-Wl,--as-needed", "-C", "link-arg=-fuse-ld=lld", # LLD linker for faster linking (5-10x improvement) # CRITICAL HFT PERFORMANCE FLAGS - FIXES SIMD 10,000x REGRESSION "-C", "target-cpu=native", "-C", "target-feature=+avx2,+fma,+bmi2", "-C", "opt-level=3", "-C", "codegen-units=1", ] # Profile-specific optimizations for maximum SIMD performance [profile.release] opt-level = 3 lto = "fat" codegen-units = 1 panic = "abort" strip = false debug = false overflow-checks = false # Benchmarking profile with SIMD optimizations [profile.bench] inherits = "release" debug = false # HFT-specific profile for production with aggressive SIMD optimization [profile.hft] inherits = "release" opt-level = 3 lto = "fat" codegen-units = 1 panic = "abort" strip = false overflow-checks = false