Skip to content

Commit

Permalink
Merge pull request #2275 from ljedrz/perf/leaner_builds
Browse files Browse the repository at this point in the history
Feature-gate the test constraint system
  • Loading branch information
howardwu authored Jan 9, 2024
2 parents 3d02f7f + 26ee8fa commit 6b2a814
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions algorithms/src/r1cs/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,19 @@ pub use linear_combination::*;
mod namespace;
pub use namespace::*;

#[cfg(feature = "test")]
mod optional_vec;
#[cfg(feature = "test")]
pub use optional_vec::*;

#[cfg(feature = "test")]
mod test_constraint_system;
#[cfg(feature = "test")]
pub use test_constraint_system::{Fr, TestConstraintSystem};

#[cfg(feature = "test")]
mod test_constraint_checker;
#[cfg(feature = "test")]
pub use test_constraint_checker::TestConstraintChecker;

use snarkvm_utilities::serialize::*;
Expand Down
2 changes: 1 addition & 1 deletion circuit/environment/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ version = "1.18.0"

[dev-dependencies.snarkvm-algorithms]
path = "../../algorithms"
features = [ "polycommit_full", "snark" ]
features = [ "polycommit_full", "snark", "test" ]

[dev-dependencies.snarkvm-circuit]
path = "../../circuit"
Expand Down

0 comments on commit 6b2a814

Please sign in to comment.