From b7f99b6e8ea083e2afc5455f022a6cefa669cefd Mon Sep 17 00:00:00 2001 From: YaoGalteland Date: Mon, 11 Mar 2024 15:34:29 +0100 Subject: [PATCH] modify features for verifiable-encryption --- halo2_gadgets/Cargo.toml | 2 ++ halo2_gadgets/src/utilities/lookup_range_check.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/halo2_gadgets/Cargo.toml b/halo2_gadgets/Cargo.toml index 09ab4efc..95085676 100644 --- a/halo2_gadgets/Cargo.toml +++ b/halo2_gadgets/Cargo.toml @@ -49,6 +49,8 @@ pprof = { version = "0.8", features = ["criterion", "flamegraph"] } # MSRV 1.56 bench = false [features] +default = ["verifiable-encryption"] +verifiable-encryption = [] test-dev-graph = [ "halo2_proofs/dev-graph", "plotters", diff --git a/halo2_gadgets/src/utilities/lookup_range_check.rs b/halo2_gadgets/src/utilities/lookup_range_check.rs index 64b4ce4c..f88d0df2 100644 --- a/halo2_gadgets/src/utilities/lookup_range_check.rs +++ b/halo2_gadgets/src/utilities/lookup_range_check.rs @@ -186,7 +186,7 @@ impl LookupRangeCheckConfig { config } - #[cfg(test)] + #[cfg(feature = "verifiable-encryption")] // Fill `table_idx` and `table_range_check_tag`. // This is only used in testing for now, since the Sinsemilla chip provides a pre-loaded table // in the Orchard context.