summaryrefslogtreecommitdiff
path: root/crates/parser
diff options
context:
space:
mode:
Diffstat (limited to 'crates/parser')
-rw-r--r--crates/parser/Cargo.toml3
-rw-r--r--crates/parser/src/error.rs2
2 files changed, 3 insertions, 2 deletions
diff --git a/crates/parser/Cargo.toml b/crates/parser/Cargo.toml
index 206a9ed..6d48a24 100644
--- a/crates/parser/Cargo.toml
+++ b/crates/parser/Cargo.toml
@@ -8,7 +8,7 @@ authors.workspace=true
repository.workspace=true
[dependencies]
-wasmparser={version="0.207", default-features=false, features=["validate"]}
+wasmparser={version="0.208", default-features=false, features=["validate"]}
log={version="0.4", optional=true}
tinywasm-types={version="0.7.0", path="../types", default-features=false}
@@ -16,3 +16,4 @@ tinywasm-types={version="0.7.0", path="../types", default-features=false}
default=["std", "logging"]
logging=["log"]
std=["tinywasm-types/std", "wasmparser/std"]
+nightly=[]
diff --git a/crates/parser/src/error.rs b/crates/parser/src/error.rs
index 76d806d..c32e026 100644
--- a/crates/parser/src/error.rs
+++ b/crates/parser/src/error.rs
@@ -59,7 +59,7 @@ impl Display for ParseError {
}
}
-#[cfg(any(feature = "std", all(not(feature = "std"), nightly)))]
+#[cfg(any(feature = "std", all(not(feature = "std"), feature = "nightly")))]
impl crate::std::error::Error for ParseError {}
impl From<wasmparser::BinaryReaderError> for ParseError {