diff options
Diffstat (limited to 'crates/parser/src/validation.rs')
| -rw-r--r-- | crates/parser/src/validation.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crates/parser/src/validation.rs b/crates/parser/src/validation.rs new file mode 100644 index 0000000..b2bb084 --- /dev/null +++ b/crates/parser/src/validation.rs @@ -0,0 +1,15 @@ +#[cfg(all(feature = "validate", parallel_parser))] +pub(crate) use wasmparser::FuncToValidate; +#[cfg(feature = "validate")] +pub(crate) use wasmparser::{FuncValidator, FuncValidatorAllocations, Validator, ValidatorResources}; + +#[cfg(all(not(feature = "validate"), parallel_parser))] +pub(crate) type FuncToValidate<T> = core::marker::PhantomData<T>; +#[cfg(not(feature = "validate"))] +pub(crate) type FuncValidator<T> = core::marker::PhantomData<T>; +#[cfg(not(feature = "validate"))] +pub(crate) type FuncValidatorAllocations = (); +#[cfg(not(feature = "validate"))] +pub(crate) type Validator = (); +#[cfg(not(feature = "validate"))] +pub(crate) type ValidatorResources = (); |
