naia-shared 0.24.0

Common functionality shared between naia-server & naia-client crates
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
cfg_if! {
    if #[cfg(all(target_arch = "wasm32", feature = "wbindgen"))] {
        mod wasm_bindgen;
        pub use self::wasm_bindgen::timer::Timer;
        pub use self::wasm_bindgen::timestamp::Timestamp;
    }
    else if #[cfg(all(target_arch = "wasm32", feature = "mquad"))] {
        mod miniquad;
        pub use self::miniquad::timer::Timer;
        pub use self::miniquad::timestamp::Timestamp;
    }
    else if #[cfg(not(target_arch = "wasm32"))] {
        mod native;
        pub use native::timer::Timer;
        pub use native::timestamp::Timestamp;
    }
}