diff --git a/third_party/silentdragonxlite/lib/Cargo.toml b/third_party/silentdragonxlite/lib/Cargo.toml index 9b03a78..fb3b4ff 100644 --- a/third_party/silentdragonxlite/lib/Cargo.toml +++ b/third_party/silentdragonxlite/lib/Cargo.toml @@ -14,3 +14,13 @@ lazy_static = "1.4.0" blake3 = "0.3.4" silentdragonxlitelib = { path = "../silentdragonxlite-cli/lib" } socket2 = "0.3.11" + +# Release profile for the static library linked into the Lite app. panic MUST stay "unwind": +# litelib_execute wraps the command in catch_unwind, and the full-tx fetcher (fulltx_fetch.rs) and +# threadpool turn scan-job panics into errors by unwinding. Do not set panic = "abort". Do not add +# `strip`: rustc does not link a staticlib (no-op), and build.sh strips the final executable. +[profile.release] +opt-level = 3 +lto = true # fat LTO; fall back to "thin" if build time/RAM is a problem +codegen-units = 1 +panic = "unwind"