summaryrefslogtreecommitdiff
path: root/crates/types/src
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-06-30 19:19:45 +0200
committerHenry Gressmann <mail@henrygressmann.de>2024-06-30 19:19:45 +0200
commit9c85fa9c3a2066ce851af53d7019e6a25a45af3b (patch)
tree79e6608e97f08c0ebdb64125b0c658f5cc4bb33f /crates/types/src
parent7e8770cc4e418ef1a8cdfd9b1f59ee14b07cc6c9 (diff)
chore: restructure runtime and reduce build dependencies
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/types/src')
-rw-r--r--crates/types/src/lib.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/crates/types/src/lib.rs b/crates/types/src/lib.rs
index cdee7e6..db39689 100644
--- a/crates/types/src/lib.rs
+++ b/crates/types/src/lib.rs
@@ -14,14 +14,19 @@ use core::{fmt::Debug, ops::Range};
// log for logging (optional).
#[cfg(feature = "logging")]
-#[allow(clippy::single_component_path_imports, unused)]
+#[allow(clippy::single_component_path_imports, unused_imports)]
use log;
+// noop fallback if logging is disabled.
#[cfg(not(feature = "logging"))]
-#[macro_use]
+#[allow(unused_imports, unused_macros)]
pub(crate) mod log {
+ macro_rules! debug ( ($($tt:tt)*) => {{}} );
+ macro_rules! info ( ($($tt:tt)*) => {{}} );
macro_rules! error ( ($($tt:tt)*) => {{}} );
+ pub(crate) use debug;
pub(crate) use error;
+ pub(crate) use info;
}
mod instructions;