aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml7
-rw-r--r--src/lib.rs9
2 files changed, 11 insertions, 5 deletions
diff --git a/Cargo.toml b/Cargo.toml
index c98eab0..d8aae35 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -20,7 +20,10 @@ default-features = false
flate2 = "1.0.17"
[features]
-default = [ "std", "bench" ]
+default = [ "std", "bench", "v1_15_2", "v1_16_3" ]
std = [ "rand" ]
-bench = [] \ No newline at end of file
+bench = []
+
+v1_15_2 = []
+v1_16_3 = [] \ No newline at end of file
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::*;