summaryrefslogtreecommitdiff
path: root/crates/parser
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-01-10 01:11:55 +0100
committerHenry Gressmann <mail@henrygressmann.de>2024-01-10 01:11:55 +0100
commit525208ec8e86eaf57feb412e6c6c71e6d56d3cb3 (patch)
tree54e6192e868e2afd23a724fce0666106248db34b /crates/parser
parent8077653ddf3d4c555bc90d1647f4a3e9eed576a5 (diff)
chore: improve documentation, tests
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser')
-rw-r--r--crates/parser/Cargo.toml1
-rw-r--r--crates/parser/src/lib.rs1
2 files changed, 1 insertions, 1 deletions
diff --git a/crates/parser/Cargo.toml b/crates/parser/Cargo.toml
index 1bd4ea3..9e6dc71 100644
--- a/crates/parser/Cargo.toml
+++ b/crates/parser/Cargo.toml
@@ -9,7 +9,6 @@ repository.workspace=true
[dependencies]
# fork of wasmparser with no_std support, see https://github.com/bytecodealliance/wasmtime/issues/3495
-# TODO: create dependency free parser
wasmparser={version="0.100", package="wasmparser-nostd", default-features=false}
log={version="0.4", optional=true}
tinywasm-types={version="0.2.0-alpha.0", path="../types"}
diff --git a/crates/parser/src/lib.rs b/crates/parser/src/lib.rs
index 22e2661..561d5c6 100644
--- a/crates/parser/src/lib.rs
+++ b/crates/parser/src/lib.rs
@@ -10,6 +10,7 @@ extern crate alloc;
#[allow(clippy::single_component_path_imports)]
use log;
+// noop fallback if logging is disabled.
#[cfg(not(feature = "logging"))]
mod log {
macro_rules! debug ( ($($tt:tt)*) => {{}} );