Add serde support behind serde feature (#96)

This commit is contained in:
Arthur Silva
2017-05-02 10:51:52 -07:00
committed by Carl Lerche
parent 37f6cabd96
commit b196559818
7 changed files with 124 additions and 3 deletions
+9
View File
@@ -24,6 +24,15 @@ extern crate bytes;
use bytes::{Bytes, BytesMut, Buf, BufMut};
```
## Serde support
Serde support is optional and disabled by default. To enable use the feature `serde`.
```toml
[dependencies]
bytes = { version = "0.4", features = ["serde"] }
```
# License
`bytes` is primarily distributed under the terms of both the MIT license and the