Skip to content

Commit

Permalink
nix: minify genpolicy binary size
Browse files Browse the repository at this point in the history
Since we are embedding the genpolicy tool as part of the nunki
cli, it is desirable to make the binary size smaller.
This change takes the size from ~152M down to ~18M.
  • Loading branch information
malt3 committed Feb 1, 2024
1 parent 28a151e commit 883ebf4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions packages/genpolicy_kata.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ rustPlatform.buildRustPackage rec {
};
};

dontStrip = true;
buildType = "debug";

env.OPENSSL_NO_VENDOR = 1;

nativeBuildInputs = [
Expand Down
3 changes: 0 additions & 3 deletions packages/genpolicy_msft.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ rustPlatform.buildRustPackage rec {

cargoHash = "sha256-MRVtChYQkiU92n/z+5r4ge58t9yVeOCdqs0zx81IQUY=";

dontStrip = true;
buildType = "debug";

OPENSSL_NO_VENDOR = 1;

nativeBuildInputs = [
Expand Down

0 comments on commit 883ebf4

Please sign in to comment.