diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2025-11-27 22:11:43 +0100 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2025-11-27 22:11:43 +0100 |
| commit | f7f77cd3026e39a2c29faf539575ef57165c81db (patch) | |
| tree | a3de97f1b68a0bdafd32d5d52308e8045b6c150f /crates/parser | |
| parent | 3e58e9846fe613f34e72d040463be5ab7e191e8b (diff) | |
chore: remove unstable-simd feature, rename logging feature to log
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser')
| -rw-r--r-- | crates/parser/Cargo.toml | 4 | ||||
| -rw-r--r-- | crates/parser/README.md | 2 | ||||
| -rw-r--r-- | crates/parser/src/lib.rs | 5 | ||||
| -rw-r--r-- | crates/parser/src/visit.rs | 2 |
4 files changed, 7 insertions, 6 deletions
diff --git a/crates/parser/Cargo.toml b/crates/parser/Cargo.toml index 3cbeee1..598a5b7 100644 --- a/crates/parser/Cargo.toml +++ b/crates/parser/Cargo.toml @@ -16,6 +16,6 @@ log={workspace=true, optional=true} tinywasm-types={version="0.9.0-alpha.0", path="../types", default-features=false} [features] -default=["std", "logging"] -logging=["log"] +default=["std", "log"] +log=["dep:log"] std=["tinywasm-types/std", "wasmparser/std"] diff --git a/crates/parser/README.md b/crates/parser/README.md index 563cd6b..104cd50 100644 --- a/crates/parser/README.md +++ b/crates/parser/README.md @@ -6,7 +6,7 @@ It uses [my fork](https://crates.io/crates/tinywasm-wasmparser) of the [`wasmpar ## Features - `std`: Enables the use of `std` and `std::io` for parsing from files and streams. -- `logging`: Enables logging of the parsing process using the `log` crate. +- `log`: Enables logging of the parsing process using the `log` crate. ## Usage diff --git a/crates/parser/src/lib.rs b/crates/parser/src/lib.rs index 3f45db8..3f543b6 100644 --- a/crates/parser/src/lib.rs +++ b/crates/parser/src/lib.rs @@ -13,12 +13,12 @@ extern crate alloc; extern crate std; // log for logging (optional). -#[cfg(feature = "logging")] +#[cfg(feature = "log")] #[allow(clippy::single_component_path_imports, unused_imports)] use log; // noop fallback if logging is disabled. -#[cfg(not(feature = "logging"))] +#[cfg(not(feature = "log"))] #[allow(unused_imports, unused_macros)] pub(crate) mod log { macro_rules! debug ( ($($tt:tt)*) => {{}} ); @@ -67,6 +67,7 @@ impl Parser { bulk_memory_opt: true, call_indirect_overlong: true, + custom_descriptors: false, cm_threading: false, extended_const: false, wide_arithmetic: false, diff --git a/crates/parser/src/visit.rs b/crates/parser/src/visit.rs index 4ae2cc1..9b9ab75 100644 --- a/crates/parser/src/visit.rs +++ b/crates/parser/src/visit.rs @@ -158,7 +158,7 @@ macro_rules! impl_visit_operator { (@@$proposal:ident $op:ident $({ $($arg:ident: $argty:ty),* })? => $visit:ident ($($ann:tt)*)) => { #[cold] - fn $visit(&mut self $($(,$arg: $argty)*)?) { + fn $visit(&mut self $($(,_: $argty)*)?) { self.unsupported(stringify!($visit)) } }; |
