diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2024-06-30 19:19:45 +0200 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2024-06-30 19:19:45 +0200 |
| commit | 9c85fa9c3a2066ce851af53d7019e6a25a45af3b (patch) | |
| tree | 79e6608e97f08c0ebdb64125b0c658f5cc4bb33f /crates/types | |
| parent | 7e8770cc4e418ef1a8cdfd9b1f59ee14b07cc6c9 (diff) | |
chore: restructure runtime and reduce build dependencies
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/types')
| -rw-r--r-- | crates/types/Cargo.toml | 2 | ||||
| -rw-r--r-- | crates/types/src/lib.rs | 9 |
2 files changed, 8 insertions, 3 deletions
diff --git a/crates/types/Cargo.toml b/crates/types/Cargo.toml index df89c89..b643964 100644 --- a/crates/types/Cargo.toml +++ b/crates/types/Cargo.toml @@ -9,7 +9,7 @@ repository.workspace=true rust-version.workspace=true [dependencies] -log={version="0.4", optional=true} +log={workspace=true, optional=true} rkyv={version="0.7", optional=true, default-features=false, features=["size_32", "validation"]} bytecheck={version="0.7", optional=true} 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; |
