Introduced circom and circom-default features for mopro-core
Before mopro-core had a Halo2 feature to turn on the Halo2 adapter, however, there was no way to turn off the Circom adapter, and because of circom dependencies Halo2 compilation took longer
This PR:
Adds a circom feature and adjusts Cargo.toml to make sure that all circom related features and dependencies require this feature to be on.
Adds a circom-deafult feature for a default circom configuration with wasmer/dylib. This is a default feature for mopro-core
Updates the build.rs to make use of the features:
Make sure that circom and halo2 are mutually exclusive features
Move the circom related functions to circom modules inside build.rs, likewise for halo2 related functions
Update mod.rs to make use of the new circom feature.
Introduced
circom
andcircom-default
features formopro-core
Before
mopro-core
had a Halo2 feature to turn on the Halo2 adapter, however, there was no way to turn off the Circom adapter, and because of circom dependencies Halo2 compilation took longerThis PR:
circom
feature and adjustsCargo.toml
to make sure that all circom related features and dependencies require this feature to be on.circom-deafult
feature for a default circom configuration withwasmer/dylib
. This is a default feature formopro-core
build.rs
to make use of the features:circom
andhalo2
are mutually exclusive featurescircom
related functions tocircom
modules insidebuild.rs
, likewise forhalo2
related functionsmod.rs
to make use of the newcircom
feature.