diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2023-12-06 02:08:39 +0100 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2023-12-06 02:08:39 +0100 |
| commit | 5f928b74d20717342074bb29797c97d75120c21f (patch) | |
| tree | 528390a6cdeb102e3cb1c403389221f28d914ea4 /crates/parser/src/lib.rs | |
| parent | ef4dbf261d13a72931887dad8db02d53a695a810 (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.rs | 11 |
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; |
