From 3299bfc72f689ac96ddb17f9d3490179ef38a618 Mon Sep 17 00:00:00 2001 From: martyall Date: Sat, 6 Jul 2024 16:02:25 -0700 Subject: [PATCH 1/2] publically expose wasm --- src/lib.rs | 2 +- src/witness/mod.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 5560936..bfdec22 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2,7 +2,7 @@ //! //! Provides bindings to Circom's R1CS, for Groth16 Proof and Witness generation in Rust. mod witness; -pub use witness::WitnessCalculator; +pub use witness::{Wasm, WitnessCalculator}; pub mod circom; pub use circom::{CircomBuilder, CircomCircuit, CircomConfig, CircomReduction}; diff --git a/src/witness/mod.rs b/src/witness/mod.rs index e8304b7..7eadb80 100644 --- a/src/witness/mod.rs +++ b/src/witness/mod.rs @@ -5,7 +5,8 @@ mod memory; pub(super) use memory::SafeMemory; mod circom; -pub(super) use circom::{CircomBase, Wasm}; +pub use circom::Wasm; +pub(super) use circom::CircomBase; #[cfg(feature = "circom-2")] pub(super) use circom::Circom2; From 642544ae2c3986019d26e5fb0a49480dfb5422a6 Mon Sep 17 00:00:00 2001 From: martyall Date: Sun, 7 Jul 2024 14:35:30 -0700 Subject: [PATCH 2/2] fix lint error --- src/witness/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/witness/mod.rs b/src/witness/mod.rs index 7eadb80..cbb8a8a 100644 --- a/src/witness/mod.rs +++ b/src/witness/mod.rs @@ -5,8 +5,8 @@ mod memory; pub(super) use memory::SafeMemory; mod circom; -pub use circom::Wasm; pub(super) use circom::CircomBase; +pub use circom::Wasm; #[cfg(feature = "circom-2")] pub(super) use circom::Circom2;