diff --git a/Cargo.toml b/Cargo.toml index 65cf7302..9abbf93c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,3 +19,15 @@ license = "MIT OR Apache-2.0" thiserror = "2" serde = { version = "1", features = ["derive"] } sha2 = "0.10" + +# Release binary: small, self-contained, and fast enough for a fleet GUI whose +# hot path is network I/O, not CPU (round 18 #12). opt-level "s" + fat LTO + +# one codegen unit + symbol stripping cut the binary substantially. panic stays +# "unwind" on purpose: the scan runs many miners on tokio tasks and the wx event +# dispatch relies on unwinding so one miner's panic never aborts the whole app. +[profile.release] +opt-level = "s" +lto = "fat" +codegen-units = 1 +strip = true + diff --git a/badges/coverage.svg b/badges/coverage.svg index 8b702f5c..c1343502 100644 --- a/badges/coverage.svg +++ b/badges/coverage.svg @@ -1,5 +1,5 @@ - - coverage: 36% + + coverage: 35% @@ -13,7 +13,7 @@ coverage coverage - 36% - 36% + 35% + 35% diff --git a/badges/loc.svg b/badges/loc.svg index 6bab57ad..8bc5623d 100644 --- a/badges/loc.svg +++ b/badges/loc.svg @@ -1,5 +1,5 @@ - - lines of code: 12.5k + + lines of code: 13.2k @@ -13,7 +13,7 @@ lines of code lines of code - 12.5k - 12.5k + 13.2k + 13.2k diff --git a/badges/tests.svg b/badges/tests.svg index acdd1c51..59cc04e8 100644 --- a/badges/tests.svg +++ b/badges/tests.svg @@ -1,5 +1,5 @@ - - tests: 94 passing + + tests: 99 passing @@ -13,7 +13,7 @@ tests tests - 94 passing - 94 passing + 99 passing + 99 passing