serde-rs / bytes

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

Unconditional serde_bytes::deserialize #47

Closed dtolnay closed 8 months ago

dtolnay commented 8 months ago

This cfg is from back when deserialize had this signature, before https://github.com/serde-rs/bytes/commit/6a14f766ac65250424f9b85e077f2d02bf709a91, so it didn't make sense without Vec existing:

https://github.com/serde-rs/bytes/blob/29f7e7a3ad3b308f3b4a61849f8a3b01c7d3fc55/src/lib.rs#L131-L134