2023-02-03 12:36:52 -06:00
|
|
|
pub mod client;
|
|
|
|
pub mod server;
|
2023-01-31 20:16:23 -06:00
|
|
|
pub(crate) mod packet;
|
2023-02-03 12:36:52 -06:00
|
|
|
pub(crate) mod common;
|
2023-02-06 12:19:02 -06:00
|
|
|
pub use common::ClientId;
|
2023-01-31 20:16:23 -06:00
|
|
|
|
2023-02-01 18:40:48 -06:00
|
|
|
//pub(crate) trait Serializable: bincode::Encode + bincode::Decode {}
|
2023-01-31 20:16:23 -06:00
|
|
|
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();
|