Skip to content

Commit 32c5e6e

Browse files
committed
fix: properly gate wasm modules and remove unnecessary import
1 parent 26808ad commit 32c5e6e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ pub mod logger;
77
pub mod parse_email;
88
pub mod proof;
99
pub mod regex;
10+
11+
#[cfg(target_arch = "wasm32")]
1012
pub mod wasm;
1113

1214
pub use circuit::*;

src/regex/wasm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use wasm_bindgen::prelude::*;
55
use crate::regex::extract::{extract_substr, extract_substr_idxes};
66
use crate::regex::padding::pad_string;
77
use crate::regex::patterns::*;
8-
use crate::regex::types::{DecomposedRegexConfig, ExtractionError};
8+
use crate::regex::types::DecomposedRegexConfig;
99

1010
// Core extraction functions
1111
// Note: WASM uses standalone mode (no NFAGraph) for simplicity

0 commit comments

Comments
 (0)