From fa6262ab5874772b8534f16812617c5ab7de5c3e Mon Sep 17 00:00:00 2001 From: Martin Allen <31280145+martyall@users.noreply.github.com> Date: Tue, 9 Jul 2024 08:46:14 -0700 Subject: [PATCH] Publicly expose Wasm type (#65) --- 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..cbb8a8a 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(super) use circom::CircomBase; +pub use circom::Wasm; #[cfg(feature = "circom-2")] pub(super) use circom::Circom2;