From 05a6088b2673ce6f281eda6b503bfc0ab424b4c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Wed, 20 Sep 2023 09:48:01 +0100 Subject: [PATCH 1/2] fix and check namada_benchmarks crate build with default features --- Makefile | 1 + benches/Cargo.toml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index ecd28436e4..2a7cf43e15 100644 --- a/Makefile +++ b/Makefile @@ -33,6 +33,7 @@ audit-ignores += RUSTSEC-2021-0076 crates := namada_core crates += namada crates += namada_apps +crates += namada_benchmarks crates += namada_encoding_spec crates += namada_macros crates += namada_proof_of_stake diff --git a/benches/Cargo.toml b/benches/Cargo.toml index 244363f9b7..501ff3e798 100644 --- a/benches/Cargo.toml +++ b/benches/Cargo.toml @@ -47,8 +47,8 @@ borsh.workspace = true ferveo-common.workspace = true masp_primitives.workspace = true masp_proofs.workspace = true -namada = { path = "../shared" } -namada_apps = { path = "../apps" } +namada = { path = "../shared", features = ["testing"] } +namada_apps = { path = "../apps", features = ["testing"] } namada_test_utils = { path = "../test_utils" } prost.workspace = true rand.workspace = true From 28dbd7ed0b0e53cf8b37259ba45920f46e80ece8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Zemanovi=C4=8D?= Date: Fri, 22 Sep 2023 14:56:10 +0100 Subject: [PATCH 2/2] make: refactor `make check` --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2a7cf43e15..b3d721427d 100644 --- a/Makefile +++ b/Makefile @@ -66,8 +66,7 @@ package: build-release check-wasm = $(cargo) check --target wasm32-unknown-unknown --manifest-path $(wasm)/Cargo.toml check: - $(cargo) check --workspace --exclude namada_benchmarks && \ - $(cargo) +$(nightly) check --benches && \ + $(cargo) check --workspace && \ make -C $(wasms) check && \ make -C $(wasms_for_tests) check && \ $(foreach wasm,$(wasm_templates),$(check-wasm) && ) true