Skip to content

Commit

Permalink
fix: building modsurfer as wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
G4Vi committed Apr 9, 2024
1 parent 5d9c236 commit a8c4466
Showing 1 changed file with 1 addition and 0 deletions.
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

0 comments on commit a8c4466

Please sign in to comment.