Restructure and trim down the library
This commit is a significant overhaul of the library in an effort to head towards a stable API. The rope implementation as well as a number of buffer implementations have been removed from the library and will live at https://github.com/carllerche/bytes-more while they incubate. **Bytes / BytesMut** `Bytes` is now an atomic ref counted byte slice. As it is contigous, it offers a richer API than before. `BytesMut` is a mutable variant. It is safe by ensuring that it is the only handle to a given byte slice. **AppendBuf -> ByteBuf** `AppendBuf` has been replaced by `ByteBuf`. The API is not identical, but is close enough to be considered a suitable replacement. **Removed types** The following types have been removed in favor of living in bytes-more * RingBuf * BlockBuf * `Bytes` as a rope implementation * ReadExt * WriteExt
Showing
- .travis.yml 0 additions, 7 deletions.travis.yml
- Cargo.toml 0 additions, 14 deletionsCargo.toml
- bench/bench.rs 0 additions, 49 deletionsbench/bench.rs
- deploy.sh 0 additions, 18 deletionsdeploy.sh
- examples/into_buf.rs 0 additions, 17 deletionsexamples/into_buf.rs
- src/alloc/heap.rs 0 additions, 9 deletionssrc/alloc/heap.rs
- src/alloc/mod.rs 0 additions, 66 deletionssrc/alloc/mod.rs
- src/alloc/pool.rs 0 additions, 265 deletionssrc/alloc/pool.rs
- src/buf/byte.rs 204 additions, 0 deletionssrc/buf/byte.rs
- src/buf/mod.rs 196 additions, 208 deletionssrc/buf/mod.rs
- src/buf/slice.rs 26 additions, 41 deletionssrc/buf/slice.rs
- src/buf/take.rs 182 additions, 0 deletionssrc/buf/take.rs
- src/bytes.rs 522 additions, 0 deletionssrc/bytes.rs
- src/imp/alloc.rs 0 additions, 68 deletionssrc/imp/alloc.rs
- src/imp/buf/append.rs 0 additions, 122 deletionssrc/imp/buf/append.rs
- src/imp/buf/block.rs 0 additions, 367 deletionssrc/imp/buf/block.rs
- src/imp/buf/bound.rs 0 additions, 55 deletionssrc/imp/buf/bound.rs
- src/imp/buf/ring.rs 0 additions, 158 deletionssrc/imp/buf/ring.rs
- src/imp/buf/take.rs 0 additions, 69 deletionssrc/imp/buf/take.rs
- src/imp/bytes/mod.rs 0 additions, 289 deletionssrc/imp/bytes/mod.rs
Loading
Please register or sign in to comment