diff --git a/halo2_gadgets/Cargo.toml b/halo2_gadgets/Cargo.toml index 09ab4efc84..9508567603 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 26db3fd984..2e11ed798b 100644 --- a/halo2_gadgets/src/utilities/lookup_range_check.rs +++ b/halo2_gadgets/src/utilities/lookup_range_check.rs @@ -186,9 +186,10 @@ impl LookupRangeCheckConfig { config } - // 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. + #[cfg(any(test, 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. pub fn load(&self, layouter: &mut impl Layouter) -> Result<(), Error> { layouter.assign_table( || "table_idx",