Skip to content

Commit 6b2a814

Browse files
authored
Merge pull request #2275 from ljedrz/perf/leaner_builds
Feature-gate the test constraint system
2 parents 3d02f7f + 26ee8fa commit 6b2a814

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

algorithms/src/r1cs/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,19 @@ pub use linear_combination::*;
3333
mod namespace;
3434
pub use namespace::*;
3535

36+
#[cfg(feature = "test")]
3637
mod optional_vec;
38+
#[cfg(feature = "test")]
3739
pub use optional_vec::*;
3840

41+
#[cfg(feature = "test")]
3942
mod test_constraint_system;
43+
#[cfg(feature = "test")]
4044
pub use test_constraint_system::{Fr, TestConstraintSystem};
4145

46+
#[cfg(feature = "test")]
4247
mod test_constraint_checker;
48+
#[cfg(feature = "test")]
4349
pub use test_constraint_checker::TestConstraintChecker;
4450

4551
use snarkvm_utilities::serialize::*;

circuit/environment/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ version = "1.18.0"
5959

6060
[dev-dependencies.snarkvm-algorithms]
6161
path = "../../algorithms"
62-
features = [ "polycommit_full", "snark" ]
62+
features = [ "polycommit_full", "snark", "test" ]
6363

6464
[dev-dependencies.snarkvm-circuit]
6565
path = "../../circuit"

0 commit comments

Comments
 (0)