From 525208ec8e86eaf57feb412e6c6c71e6d56d3cb3 Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Wed, 10 Jan 2024 01:11:55 +0100 Subject: chore: improve documentation, tests Signed-off-by: Henry Gressmann --- crates/parser/Cargo.toml | 1 - crates/parser/src/lib.rs | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/parser') 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)*) => {{}} ); -- cgit v1.3.1