Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: building modsurfer as wasm #73

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions validation/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ pub struct Module {}
// this uses Extism's "typed plugin" macro to produce a new struct `ModuleParser`, which contains
// an associated function `parse_module`. This enables us to wrap the extism::Plugin type and feel
// more like regular Rust functions vs. the using the generalized `Plugin::call` function.
#[cfg(not(all(target_arch = "wasm32", target_os = "unknown")))]
extism::typed_plugin!(ModuleParser {
parse_module(&[u8]) -> Protobuf<ApiModule>;
});
Expand Down
Loading