-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathCargo.toml
More file actions
39 lines (32 loc) · 979 Bytes
/
Cargo.toml
File metadata and controls
39 lines (32 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[package]
name = "hft_rust_core"
version = "0.1.0"
edition = "2021"
[lib]
crate-type = ["staticlib", "cdylib"] # For FFI with C++
[dependencies]
# No dependencies for zero-overhead, deterministic execution
[profile.release]
opt-level = 3 # Maximum optimization
lto = "fat" # Link-time optimization
codegen-units = 1 # Better optimization (slower compile)
panic = "abort" # No unwinding overhead
strip = true # Strip symbols for smaller binary
[profile.release.build-override]
opt-level = 3
[profile.release.package."*"]
opt-level = 3
# Custom profile for ultra-low latency
[profile.latency]
inherits = "release"
opt-level = 3
lto = "fat"
codegen-units = 1
panic = "abort"
strip = true
overflow-checks = false # Disable overflow checks in hot path
debug-assertions = false
[features]
default = []
avx2 = [] # AVX2 SIMD optimizations
hardware_tsc = [] # Use hardware TSC for timing