summaryrefslogtreecommitdiff
path: root/crates/parser/src/lib.rs
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2023-12-06 02:08:39 +0100
committerHenry Gressmann <mail@henrygressmann.de>2023-12-06 02:08:39 +0100
commit5f928b74d20717342074bb29797c97d75120c21f (patch)
tree528390a6cdeb102e3cb1c403389221f28d914ea4 /crates/parser/src/lib.rs
parentef4dbf261d13a72931887dad8db02d53a695a810 (diff)
feat: validate module opcodes, logging feature
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/parser/src/lib.rs')
-rw-r--r--crates/parser/src/lib.rs11
1 files changed, 11 insertions, 0 deletions
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;