diff --git a/flake.nix b/flake.nix index 5f31d8d..3403601 100644 --- a/flake.nix +++ b/flake.nix @@ -41,7 +41,7 @@ overlays = [ (import inputs.rust-overlay) ]; }; - rustToolchain = pkgs.rust-bin.nightly.latest.minimal.override { + rustToolchain = pkgs.rust-bin.nightly."2024-01-29".minimal.override { # Set the build targets supported by the toolchain, # wasm32-unknown-unknown is required for trunk. targets = [ "wasm32-unknown-unknown" ]; diff --git a/nix/fixture/Cargo.toml b/nix/fixture/Cargo.toml index b276bc9..dd7a423 100644 --- a/nix/fixture/Cargo.toml +++ b/nix/fixture/Cargo.toml @@ -1,3 +1,5 @@ +cargo-features = ["trim-paths"] + [workspace] members = ["zome"] resolver = "2" @@ -7,3 +9,8 @@ hdi = "0.4.0-beta-dev" hdk = "0.3.0-beta-dev" holochain = "0.3.0-beta-dev" serde = "1" + +[profile.release] +opt-level = "z" +trim-paths = true +remap-debuginfo = true diff --git a/nix/fixture/flake.lock b/nix/fixture/flake.lock index 1e35fa2..b8f83f5 100644 --- a/nix/fixture/flake.lock +++ b/nix/fixture/flake.lock @@ -540,7 +540,7 @@ }, "locked": { "lastModified": 0, - "narHash": "sha256-FH1OUOHfGfcviSpQwf4/vLw4VqazLa4m+iGozfwzNRc=", + "narHash": "sha256-ySoYxlwP6GAHADzlk9Z+VyswRq9zDdkmW3BQiw9kPhc=", "path": "../..", "type": "path" }, diff --git a/nix/zome.nix b/nix/zome.nix index d3fe013..b8f96d9 100644 --- a/nix/zome.nix +++ b/nix/zome.nix @@ -19,6 +19,7 @@ let doCheck = false; src = craneLib.cleanCargoSource (craneLib.path workspacePath); CARGO_BUILD_TARGET = "wasm32-unknown-unknown"; + CARGO_BUILD_RUSTFLAGS = ""; }; wasmDeps = craneLib.buildDepsOnly (commonArgs // {