gel_db_protocol/
lib.rs

1mod arrays;
2mod buffer;
3mod datatypes;
4mod encoding;
5mod gen;
6mod macros;
7mod message_group;
8mod structs;
9mod writer;
10
11#[doc(hidden)]
12pub mod test_protocol;
13
14pub use arrays::{Array, ArrayIter, ZTArray, ZTArrayIter};
15pub use buffer::StructBuffer;
16pub use datatypes::{Encoded, LString, Length, Rest, Uuid, ZTString};
17pub use writer::BufWriter;
18
19#[doc(inline)]
20pub use gen::protocol;
21#[doc(inline)]
22pub use message_group::{match_message, message_group};
23
24/// Re-export for the `protocol!` macro.
25#[doc(hidden)]
26pub use paste::paste;
27
28pub mod prelude {
29    pub use super::encoding::DataType;
30    pub use super::encoding::DataTypeFixedSize;
31    pub use super::encoding::EncodeTarget;
32    pub use super::encoding::ParseError;
33    pub use super::writer::BufWriter;
34
35    pub use super::structs::EnumMeta;
36
37    pub use super::structs::StructAttributeFieldCount;
38    pub use super::structs::StructAttributeFixedSize;
39    pub use super::structs::StructAttributeHasLengthField;
40    pub use super::structs::StructField;
41    pub use super::structs::StructFieldComputed;
42    pub use super::structs::StructFieldMeta;
43    pub use super::structs::StructFields;
44    pub use super::structs::StructLength;
45    pub use super::structs::StructMeta;
46
47    pub use super::declare_meta;
48
49    pub use super::arrays::*;
50    pub use super::buffer::StructBuffer;
51    pub use super::datatypes::*;
52
53    pub use super::match_message;
54    pub use super::message_group;
55    pub use super::protocol;
56}