From a5ec2dfe6ef95601213566fed7d048a9bf1eaa17 Mon Sep 17 00:00:00 2001 From: Yuval Kogman Date: Sat, 13 Dec 2025 19:24:21 +0100 Subject: [PATCH 1/3] flake: build dev profile instead of release this results in much faster builds and therefore checks, improving developer experience. if we additionally want to build the packages in release mode, or run certain tests in release mode, we can build the workspace dependencies using both release and dev profiles as appropriate, but unless we intend to ship e.g. docker containers based on our built packages we don't need the release profile for the foreseeable future. --- Cargo.toml | 4 ++++ flake.nix | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 0e16ea6c1..2fecb8718 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,3 +14,7 @@ ohttp-relay = { path = "ohttp-relay" } payjoin = { path = "payjoin" } payjoin-directory = { path = "payjoin-directory" } payjoin-test-utils = { path = "payjoin-test-utils" } + +[profile.crane] +inherits = "test" +debug = false diff --git a/flake.nix b/flake.nix index a607aa409..02666e58b 100644 --- a/flake.nix +++ b/flake.nix @@ -96,6 +96,10 @@ inherit src; strictDeps = true; + # avoid release builds throughout for faster feedback from checks + # note that this also affects the built packages + CARGO_PROFILE = "crane"; + # provide fallback name & version for workspace related derivations # this is mainly to silence warnings from crane about providing a stub # value overridden in per-crate packages with info from Cargo.toml @@ -220,7 +224,6 @@ NGINX_EXE = nixpkgs.lib.getExe' nginxWithStream "nginx"; nativeBuildInputs = [ nginxWithStream ]; } - ) )) ) craneLibVersions From c14f20b936d324bd9f5d3868048b9d35c37eed31 Mon Sep 17 00:00:00 2001 From: Yuval Kogman Date: Mon, 15 Dec 2025 17:59:58 +0100 Subject: [PATCH 2/3] disable terminal reliant progress output from nextest --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index 02666e58b..5f0b661b0 100644 --- a/flake.nix +++ b/flake.nix @@ -220,6 +220,7 @@ partitions = 1; partitionType = "count"; cargoExtraArgs = "--locked --all-features"; + NEXTEST_SHOW_PROGRESS = "none"; BITCOIND_EXE = nixpkgs.lib.getExe' pkgs.bitcoind "bitcoind"; NGINX_EXE = nixpkgs.lib.getExe' nginxWithStream "nginx"; nativeBuildInputs = [ nginxWithStream ]; From 0cde9c45afb6c4a9ab88c0994961f3dbed642465 Mon Sep 17 00:00:00 2001 From: Yuval Kogman Date: Mon, 15 Dec 2025 18:00:44 +0100 Subject: [PATCH 3/3] don't install cargo artifacts from nextest jobs --- flake.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/flake.nix b/flake.nix index 5f0b661b0..e5a9d1e72 100644 --- a/flake.nix +++ b/flake.nix @@ -224,6 +224,7 @@ BITCOIND_EXE = nixpkgs.lib.getExe' pkgs.bitcoind "bitcoind"; NGINX_EXE = nixpkgs.lib.getExe' nginxWithStream "nginx"; nativeBuildInputs = [ nginxWithStream ]; + doInstallCargoArtifacts = false; } ) ))