rak-rs 0.3.2

A fully functional RakNet implementation in pure rust, asynchronously driven.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// A wrapper for println that is enabled
/// only when debug is enabled.
#[macro_export]
macro_rules! rakrs_debug {
    ($heavy: ident, $($t: tt)*) => {
        if cfg!(feature="debug") && cfg!(feature="debug_all") {
            println!("[rakrs] DBG! {}", format!($($t)*));
        }
    };
    ($($t: tt)*) => {
        if cfg!(feature="debug") {
            println!("[rakrs] DBG! {}", format!($($t)*));
        }
    };
}