fix: protocol frame parsing, add debug feature, refactor read logic
This commit is contained in:
13
src/lib.rs
13
src/lib.rs
@@ -1,3 +1,16 @@
|
||||
/// Debug-only print macro. Only outputs when compiled with `--features debug`.
|
||||
#[cfg(feature = "debug")]
|
||||
#[macro_export]
|
||||
macro_rules! debug_println {
|
||||
($($arg:tt)*) => { println!($($arg)*) };
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "debug"))]
|
||||
#[macro_export]
|
||||
macro_rules! debug_println {
|
||||
($($arg:tt)*) => {};
|
||||
}
|
||||
|
||||
pub mod channel;
|
||||
pub mod config;
|
||||
pub mod device;
|
||||
|
||||
Reference in New Issue
Block a user