summaryrefslogtreecommitdiff
path: root/crates/types/src
diff options
context:
space:
mode:
authorHenry Gressmann <mail@henrygressmann.de>2024-01-26 01:26:09 +0100
committerHenry Gressmann <mail@henrygressmann.de>2024-01-26 01:26:09 +0100
commit461126ce309f99e4ad2a6ddcbc175ea01c5e8fee (patch)
tree30de8bcfec97f87d468191fb9959f90e7ee91100 /crates/types/src
parentb9a4e8788f374dac94e4f3f5b062dbe2a1d2a10c (diff)
feat: full no_std support
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/types/src')
-rw-r--r--crates/types/src/lib.rs17
1 files changed, 8 insertions, 9 deletions
diff --git a/crates/types/src/lib.rs b/crates/types/src/lib.rs
index a467d7a..d0d854c 100644
--- a/crates/types/src/lib.rs
+++ b/crates/types/src/lib.rs
@@ -11,16 +11,15 @@
extern crate alloc;
// log for logging (optional).
-// #[cfg(feature = "logging")]
-// #[allow(unused_imports)]
-// use log;
+#[cfg(feature = "logging")]
+use log;
-// #[cfg(not(feature = "logging"))]
-// #[macro_use]
-// pub(crate) mod log {
-// // macro_rules! debug ( ($($tt:tt)*) => {{}} );
-// // pub(crate) use debug;
-// }
+#[cfg(not(feature = "logging"))]
+#[macro_use]
+pub(crate) mod log {
+ macro_rules! error ( ($($tt:tt)*) => {{}} );
+ pub(crate) use error;
+}
mod instructions;
use core::{fmt::Debug, ops::Range};