From 5f928b74d20717342074bb29797c97d75120c21f Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Wed, 6 Dec 2023 02:08:39 +0100 Subject: feat: validate module opcodes, logging feature Signed-off-by: Henry Gressmann --- crates/parser/src/lib.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'crates/parser/src/lib.rs') diff --git a/crates/parser/src/lib.rs b/crates/parser/src/lib.rs index 31e8cc8..343350a 100644 --- a/crates/parser/src/lib.rs +++ b/crates/parser/src/lib.rs @@ -5,6 +5,17 @@ mod std; extern crate alloc; +// log for logging (optional). +#[cfg(feature = "logging")] +#[allow(clippy::single_component_path_imports)] +use log; + +#[cfg(not(feature = "logging"))] +mod log { + macro_rules! debug ( ($($tt:tt)*) => {{}} ); + pub(crate) use debug; +} + mod conversion; mod error; mod module; -- cgit v1.3.1