From 54a0b131047283088f8366dd4d48273f65c02471 Mon Sep 17 00:00:00 2001 From: thesimplekid Date: Wed, 24 Apr 2024 17:06:35 +0100 Subject: [PATCH] chore: add cdk-redb to precommit check --- flake.nix | 4 ++-- misc/scripts/check-crates.sh | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index d8156326..dfbd4f53 100644 --- a/flake.nix +++ b/flake.nix @@ -20,7 +20,7 @@ flakeboxLib = flakebox.lib.${system} { }; rustSrc = flakeboxLib.filterSubPaths { root = builtins.path { - name = "cashu-sdk"; + name = "cdk"; path = ./.; }; paths = [ "crates/cashu" "crates/cashu-sdk" ]; @@ -30,7 +30,7 @@ toolchainsStd = flakeboxLib.mkStdToolchains { }; toolchainNative = flakeboxLib.mkFenixToolchain { - targets = (pkgs.lib.getAttrs [ "default" ] targetsStd); + targets = (pkgs.lib.getAttrs [ "default" "wasm32-unknown" ] targetsStd); }; commonArgs = { diff --git a/misc/scripts/check-crates.sh b/misc/scripts/check-crates.sh index 85242ea8..998e4bf1 100755 --- a/misc/scripts/check-crates.sh +++ b/misc/scripts/check-crates.sh @@ -28,6 +28,9 @@ buildargs=( "-p cdk --no-default-features --features wallet" "-p cdk --no-default-features --features mint" "-p cdk --no-default-features --features nut13" + "-p cdk-redb" + "-p cdk-redb --no-default-features --features wallet" + "-p cdk-redb --no-default-features --features mint" ) for arg in "${buildargs[@]}"; do