serde-rs / bytes

Wrapper types to enable optimized handling of &[u8] and Vec<u8>
Apache License 2.0
306 stars 37 forks source link

Making the `serde` dependency optional #36

Closed robertbastian closed 1 year ago

robertbastian commented 2 years ago

In our code base we use a feature to enable/disable serde functionality on our structs. Currently we cannot use this crate, as it unconditionally pulls in serde, which we're trying to avoid. With this change we'd be able to turn off the serde functionality of this crate when required, without having to change our types based on features (which is messy).