From 6274c6fcddb6ff2d773ab75dc80b14b60546e7c1 Mon Sep 17 00:00:00 2001 From: wucke13 Date: Sat, 4 Nov 2023 12:46:48 +0100 Subject: [PATCH] add workspace Cargo.toml --- Cargo.toml | 7 +++++++ flake.nix | 3 +++ 2 files changed, 10 insertions(+) create mode 100644 Cargo.toml diff --git a/Cargo.toml b/Cargo.toml new file mode 100644 index 0000000..b19286e --- /dev/null +++ b/Cargo.toml @@ -0,0 +1,7 @@ +[workspace] +resolver = "2" + +members = [ + "rosenpass", +] + diff --git a/flake.nix b/flake.nix index 4e76269..fe43169 100644 --- a/flake.nix +++ b/flake.nix @@ -112,6 +112,9 @@ version = cargoToml.package.version; inherit src; + cargoBuildOptions = x: x ++ [ "-p" "rosenpass" ]; + cargoTestOptions = x: x ++ [ "-p" "rosenpass" ]; + doCheck = true; nativeBuildInputs = with pkgs; [