Carl Lerche and GitHub
94c543f74b
remove ext traits ( #431 )
2020-10-16 15:16:23 -07:00
Taiki Endo and GitHub
7daa7fe053
Change default lint level to warning and deny warnings in CI ( #397 )
2020-07-09 09:12:39 -07:00
Taiki Endo and GitHub
1fbf83816b
Format with rustfmt ( #389 )
...
* Format with rustfmt
* Add rustfmt check to CI
2020-05-22 13:17:30 +09:00
Cheng XU and GitHub
e8fa2511ff
Fix tests for no_std build ( #384 )
...
This fixes `cargo test --no-default-features`.
2020-05-22 11:18:20 +09:00
Carl Lerche and GitHub
8135c1f606
implicitly grow BytesMut; add BufMutExt::chain_mut ( #316 )
...
This brings `BytesMut` in line with `Vec<u8>` behavior.
This also fixes an existing bug in BytesMut::bytes_mut that exposes
invalid slices. The bug was recently introduced and was only on master
and never released to `crates.io`.
In order to fix a test, `BufMutExt::chain_mut` is provided. Withou this,
it is not possible to chain two `&mut [u8]`.
Closes #170
2019-11-20 12:11:40 -08:00
Sean McArthur and GitHub
96268a80d4
Move "extra" methods to extension traits ( #306 )
2019-10-31 09:39:58 -07:00
Douman and Carl Lerche
b6cb346adf
Remove IntoBuf/FromBuf ( #288 )
...
As consequence Buf::collect is removed as well, which is replaced with `Buf::into_bytes`. The advantage of `Buf::into_bytes` is that it can be optimized in cases where converting a `T: Buf` into a `Bytes` instance is efficient.
2019-08-27 13:09:43 -07:00
Taiki Endo and GitHub
ae7d884582
Update Bytes to Rust 2018 ( #274 )
2019-07-26 05:01:22 +09:00
Sean McArthur
dea868a4b0
Replace iovec with std::io::IoSlice
...
- Renames `bytes_vec` to `bytes_vectored` and `bytes_vec_mut` to
`bytes_vectored_mut`.
2019-06-11 11:58:43 -07:00
Sean McArthur and Carl Lerche
55aa530dc1
Remove io::Cursor, and implement Buf/BufMut for slices instead ( #261 )
2019-06-07 12:31:10 -07:00
YetAnotherMinion and Sean McArthur
d8134903de
feat: remove impl IntoBuf for Cursor<Self>, impl Buf for Bytes, BytesMut, refactor iterators
2019-06-06 16:59:44 -07:00
Carl Lerche and GitHub
3d169f1f34
Update iovec dependency ( #179 )
...
Update to match master version of IoVec (0.2.0?), using
IoVec/IoVecMut instead of &IoVec and &mut IoVec.
2018-01-25 22:02:21 -08:00
Carl Lerche
149922d7cf
Get test passing again
2017-10-21 15:47:45 -07:00
Carl Lerche
9a4018e757
Fix tests on nightly
...
Closes #83
2017-03-19 09:08:41 -07:00
Carl Lerche
94396162b2
Implement chain combinator for Buf
2017-03-01 14:22:53 -08:00