1
1
Fork 0
mirror of https://github.com/griffi-gh/kubi.git synced 2025-03-14 11:06:26 -05:00
kubi/kubi-udp/src/lib.rs
2023-02-14 04:52:11 +01:00

14 lines
509 B
Rust

pub mod client;
pub mod server;
pub(crate) mod packet;
pub(crate) mod common;
pub use common::ClientId;
pub use common::ClientIdRepr;
pub use common::MAX_CLIENTS;
//pub(crate) trait Serializable: bincode::Encode + bincode::Decode {}
pub(crate) const BINCODE_CONFIG: bincode::config::Configuration<bincode::config::LittleEndian, bincode::config::Varint, bincode::config::SkipFixedArrayLength> = bincode::config::standard()
.with_little_endian()
.with_variable_int_encoding()
.skip_fixed_array_length();