mirror of
https://github.com/arnaucube/sonobe.git
synced 2026-01-08 15:01:30 +01:00
Move the experimental frontends into a separate crate, so that when not using them they don't take several minutes to compile (and indirect dependencies). (#168)
This saves several minutes (and MBs of data) on compilation time both when running tests in this repo, but also when using the sonobe lib as a dependency in external repos.
This commit is contained in:
@@ -23,10 +23,11 @@ use folding_schemes::{
|
||||
decider_eth::{prepare_calldata, Decider as DeciderEth},
|
||||
Nova, PreprocessorParam,
|
||||
},
|
||||
frontend::{circom::CircomFCircuit, FCircuit},
|
||||
frontend::FCircuit,
|
||||
transcript::poseidon::poseidon_canonical_config,
|
||||
Decider, FoldingScheme,
|
||||
};
|
||||
use frontends::circom::CircomFCircuit;
|
||||
use solidity_verifiers::{
|
||||
evm::{compile_solidity, Evm},
|
||||
utils::get_function_selector_for_nova_cyclefold_verifier,
|
||||
@@ -54,11 +55,9 @@ fn main() {
|
||||
];
|
||||
|
||||
// initialize the Circom circuit
|
||||
let r1cs_path = PathBuf::from(
|
||||
"./folding-schemes/src/frontend/circom/test_folder/with_external_inputs.r1cs",
|
||||
);
|
||||
let r1cs_path = PathBuf::from("./frontends/src/circom/test_folder/with_external_inputs.r1cs");
|
||||
let wasm_path = PathBuf::from(
|
||||
"./folding-schemes/src/frontend/circom/test_folder/with_external_inputs_js/with_external_inputs.wasm",
|
||||
"./frontends/src/circom/test_folder/with_external_inputs_js/with_external_inputs.wasm",
|
||||
);
|
||||
|
||||
let f_circuit_params = (r1cs_path.into(), wasm_path.into(), 1, 2);
|
||||
|
||||
@@ -20,13 +20,11 @@ use folding_schemes::{
|
||||
decider_eth::{prepare_calldata, Decider as DeciderEth},
|
||||
Nova, PreprocessorParam,
|
||||
},
|
||||
frontend::{
|
||||
noir::{load_noir_circuit, NoirFCircuit},
|
||||
FCircuit,
|
||||
},
|
||||
frontend::FCircuit,
|
||||
transcript::poseidon::poseidon_canonical_config,
|
||||
Decider, FoldingScheme,
|
||||
};
|
||||
use frontends::noir::{load_noir_circuit, NoirFCircuit};
|
||||
use std::{env, time::Instant};
|
||||
|
||||
use solidity_verifiers::{
|
||||
@@ -44,7 +42,7 @@ fn main() {
|
||||
let cur_path = env::current_dir().unwrap();
|
||||
|
||||
let circuit_path = format!(
|
||||
"{}/folding-schemes/src/frontend/noir/test_folder/test_mimc/target/test_mimc.json",
|
||||
"{}/frontends/src/noir/test_folder/test_mimc/target/test_mimc.json",
|
||||
cur_path.to_str().unwrap()
|
||||
);
|
||||
|
||||
|
||||
@@ -21,10 +21,11 @@ use folding_schemes::{
|
||||
decider_eth::{prepare_calldata, Decider as DeciderEth},
|
||||
Nova, PreprocessorParam,
|
||||
},
|
||||
frontend::{noname::NonameFCircuit, FCircuit},
|
||||
frontend::FCircuit,
|
||||
transcript::poseidon::poseidon_canonical_config,
|
||||
Decider, FoldingScheme,
|
||||
};
|
||||
use frontends::noname::NonameFCircuit;
|
||||
use std::time::Instant;
|
||||
|
||||
use solidity_verifiers::{
|
||||
|
||||
Reference in New Issue
Block a user