mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-26 00:38:44 -06:00
use rkyv
This commit is contained in:
parent
5b93fa7639
commit
f294e0e159
|
@ -6,6 +6,7 @@ edition = "2021"
|
||||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
glam = { version = "0.22", features = ["debug-glam-assert", "mint", "fast-math"] }
|
glam = { version = "0.22", features = ["debug-glam-assert", "mint", "fast-math", "rkyv"] }
|
||||||
strum = { version = "0.24", features = ["derive"] }
|
strum = { version = "0.24", features = ["derive"] }
|
||||||
bracket-noise = "0.8"
|
bracket-noise = "0.8"
|
||||||
|
rkyv = { version = "0.7", features = ["validation", "archive_le"] }
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
pub mod client;
|
pub mod client;
|
||||||
pub mod server;
|
pub mod server;
|
||||||
|
pub mod messages;
|
||||||
|
|
11
kubi-shared/src/networking/messages.rs
Normal file
11
kubi-shared/src/networking/messages.rs
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
use rkyv::{Archive, Deserialize, Serialize};
|
||||||
|
|
||||||
|
#[derive(Archive, Deserialize, Serialize, Debug, PartialEq)]
|
||||||
|
pub enum ClientToServerMessage {
|
||||||
|
Placeholder
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Archive, Deserialize, Serialize, Debug, PartialEq)]
|
||||||
|
pub enum ServerToClientMessage {
|
||||||
|
Placeholder
|
||||||
|
}
|
|
@ -17,4 +17,3 @@ shipyard = { version = "0.6", features = ["thread_local"] }
|
||||||
nohash-hasher = "0.2.0"
|
nohash-hasher = "0.2.0"
|
||||||
anyhow = "1.0"
|
anyhow = "1.0"
|
||||||
flume = "0.10"
|
flume = "0.10"
|
||||||
#rkyv = "0.7"
|
|
||||||
|
|
Loading…
Reference in a new issue