diff --git a/Cargo.toml b/Cargo.toml index 629f52fc5..3db8b3b9c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,5 +49,9 @@ debug = 0 [profile.dev.package."*"] opt-level = 2 +[profile.release] +lto = "thin" +codegen-units = 1 + [profile.release.package."typst-cli"] strip = true