aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJoey Sacchini <joey@sacchini.net>2020-10-20 21:42:07 -0400
committerJoey Sacchini <joey@sacchini.net>2020-10-20 21:42:07 -0400
commitc32e6abbbf06265cff0079de3aaa1cec8d17701d (patch)
tree2ddb693d47f703bc727035e6392b41c9e4cb5897 /src/lib.rs
parent30579364f26c04551bae9719adc9e6a43dd0a5ab (diff)
downloadmcproto-rs-c32e6abbbf06265cff0079de3aaa1cec8d17701d.tar.gz
mcproto-rs-c32e6abbbf06265cff0079de3aaa1cec8d17701d.tar.bz2
mcproto-rs-c32e6abbbf06265cff0079de3aaa1cec8d17701d.zip
add feature flags for the different version modules
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib.rs b/src/lib.rs
index fa25777..fd742f3 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -7,17 +7,20 @@ extern crate alloc;
extern crate test;
mod deserialize;
+mod serialize;
pub mod nbt;
pub mod protocol;
-mod serialize;
pub mod status;
pub mod types;
pub mod utils;
pub mod uuid;
+mod chat;
+pub mod byte_order;
+
+#[cfg(feature = "v1_15_2")]
pub mod v1_15_2;
+#[cfg(feature = "v1_16_3")]
pub mod v1_16_3;
-mod chat;
-mod byte_order;
pub use deserialize::*;
pub use serialize::*;