aboutsummaryrefslogtreecommitdiff
path: root/Cargo.nix
diff options
context:
space:
mode:
Diffstat (limited to 'Cargo.nix')
-rw-r--r--Cargo.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/Cargo.nix b/Cargo.nix
index 86a20104..c4d4c0ea 100644
--- a/Cargo.nix
+++ b/Cargo.nix
@@ -45,7 +45,7 @@ else let
inherit (rustLib) fetchCratesIo fetchCrateLocal fetchCrateGit fetchCrateAlternativeRegistry expandFeatures decideProfile genDrvsByProfile;
profilesByName = {
dev = builtins.fromTOML "lto = \"off\"\n";
- release = builtins.fromTOML "debug = true\n";
+ release = builtins.fromTOML "codegen-units = 1\nlto = true\nopt-level = \"s\"\nstrip = true\n";
};
rootFeatures' = expandFeatures rootFeatures;
overridableMkRustCrate = f: