Skip to content

Commit d2c9a5a

Browse files
committed
max compiler optimalizations
1 parent 7dd1626 commit d2c9a5a

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

Cargo.toml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,13 @@ hex = "0.4"
3131
hex-literal = "1.0.0"
3232
indicatif = "0.17"
3333
clap = { version = "4.5", features = ["derive"] }
34-
reqwest = { version = "0.11", features = ["json", "blocking"] } # FIX: 'blocking' feature is required for reqwest::blocking::Client
35-
serde = { version = "1.0", features = ["derive"] } # FIX: 'derive' feature is required for #[derive(Deserialize)]
34+
reqwest = { version = "0.11", features = [
35+
"json",
36+
"blocking",
37+
] } # FIX: 'blocking' feature is required for reqwest::blocking::Client
38+
serde = { version = "1.0", features = [
39+
"derive",
40+
] } # FIX: 'derive' feature is required for #[derive(Deserialize)]
3641
serde_json = "1.0" # Added for completeness, often required with serde
3742
pallas-addresses = "0.33"
3843
pallas-crypto = "0.33"
@@ -58,3 +63,15 @@ randomx-rs = "1.3"
5863
hex = "0.4"
5964
indicatif = "0.17"
6065
getrandom = "0.3"
66+
67+
# --- RELEASE PROFILE OPTIMIZATIONS ---
68+
[profile.release]
69+
opt-level = 3 # Maximum optimization level
70+
lto = "fat" # Link-time optimization (whole program optimization)
71+
codegen-units = 1 # Single codegen unit for better optimization
72+
panic = "abort" # Abort on panic instead of unwinding (smaller, faster)
73+
# strip = true # Removed: Keep debug symbols for better crash reports
74+
# overflow-checks = false # Removed: Keep overflow checks for safety in crypto code
75+
76+
[profile.release.package."*"]
77+
opt-level = 3 # Also optimize all dependencies maximally

0 commit comments

Comments
 (0)