godot_netpacket/lib.rs
1//! Allow serializing and deserializing godot basic types into network packets
2
3/// Module for network packets
4pub mod netpacket;
5
6// re-export elements
7pub use netpacket::{ConstSize, Deserialize, Half, Serialize, Unit};
8
9// re-export derive macros
10pub mod macros {
11 pub use godot_netpacket_macros::{ConstSize, Deserialize, Serialize};
12}
13
14#[allow(unused_imports)]
15use godot::prelude::*;
16
17/// Root of the library
18#[cfg(feature = "standalone")]
19struct NetPacketExtension;
20
21#[cfg(feature = "standalone")]
22#[gdextension]
23unsafe impl ExtensionLibrary for NetPacketExtension {}