mirror of
https://github.com/TheFunny/TelegramTwitterMediaBot.git
synced 2026-09-22 23:32:04 +00:00
Smaller/faster production binary (verified: cargo build --release -p xmedia-bot builds clean with the new profile). panic=abort is intentionally not set — queue workers and db closures rely on JoinHandle catching panics, which abort would defeat.
13 lines
421 B
TOML
13 lines
421 B
TOML
[workspace]
|
|
members = ["crates/x-media", "crates/xmedia-bot"]
|
|
resolver = "3"
|
|
|
|
# Smaller/faster production binary: strip debug symbols, link-time
|
|
# optimization across crates, and one codegen unit per crate (bigger LTO
|
|
# wins). panic=abort is intentionally NOT set: queue workers and db
|
|
# closures rely on JoinHandle catching panics, which abort would defeat.
|
|
[profile.release]
|
|
strip = true
|
|
lto = "thin"
|
|
codegen-units = 1
|