summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzirkonya <zirkonya@iridium.lan>2026-08-16 14:59:32 +0200
committerzirkonya <zirkonya@iridium.lan>2026-08-16 14:59:32 +0200
commit7cfd669783c310747debcfca7106e6162f492340 (patch)
treedecf913fc67c7b03b83cc4900a2fd2b833150caa
parent90042cc32f95286692755451aabdc928c315e2ce (diff)
remove big_endian feature ; add macros features
-rw-r--r--Cargo.toml7
-rw-r--r--src/lib.rs2
2 files changed, 7 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index be17fbc..07c20eb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -4,7 +4,10 @@ version = "0.1.1"
edition = "2024"
[dependencies]
+zr_protocol_macros = { version = "0.1.0", path = "macros", optional = true }
[features]
-default = ["big_endian"]
-big_endian = []
+macros = ["dep:zr_protocol_macros"]
+
+[workspace]
+members = ["macros"]
diff --git a/src/lib.rs b/src/lib.rs
index 756f9e2..ce2b14c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -2,6 +2,8 @@ pub mod codec;
pub mod context;
pub mod types;
+#[cfg(feature = "macros")]
pub use zr_protocol_macros as macros;
+/// The default buffer length used to allocate chunks
pub(crate) const DEFAULT_BUFFER_LEN: usize = 2048;