Taiki Endo
ae7d884582
Update Bytes to Rust 2018 ( #274 )
2019-07-26 05:01:22 +09:00
Taiki Endo
ecdde1a996
Update travis config to test on stable ( #273 )
2019-07-24 08:25:03 -07:00
Bruce Mitchener
e25b75a28e
Fix typos.
2019-07-16 11:18:49 -07:00
Bruce Mitchener
9b5e33d6f0
Remove merge conflict marker.
2019-07-16 11:18:49 -07: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
ac4e8f2fc5
Use RangeBounds trait for Bytes::slice
...
- Removes `slice_to` and `slice_from`.
2019-06-10 09:39:27 -07:00
Taiki Endo
ed7c7b5c58
Replace try! macro with ? operator
2019-06-10 09:05:11 -07:00
Sean McArthur
09772c4e77
fix benches after cursor removal
2019-06-07 15:09:06 -07:00
Sean McArthur
47fdf06e34
Make serde module private ( #262 )
2019-06-07 12:31:44 -07:00
Sean McArthur
55aa530dc1
Remove io::Cursor, and implement Buf/BufMut for slices instead ( #261 )
2019-06-07 12:31:10 -07:00
YetAnotherMinion
d8134903de
feat: remove impl IntoBuf for Cursor<Self>, impl Buf for Bytes, BytesMut, refactor iterators
2019-06-06 16:59:44 -07:00
Sean McArthur
654a11c84c
bump CI minimum Rust to 1.27 for 'dyn' keyword
2019-06-06 14:29:35 -07:00
Sean McArthur
5759211ff8
Merge branch 'v0.4.x' into uplift-0.4-commits
2019-06-06 14:08:29 -07:00
Sean McArthur
60aceba2bb
set publish to false, update meta links ( #258 )
2019-06-06 13:58:22 -07:00
Pavel Strakhov
d43e283e5e
Panic in BytesMut::split_to when out of bounds ( #252 ) ( #253 )
2019-04-02 16:24:30 -07:00
南浦月
e0e30f00a1
Fix a typo in CHANGELOG.md ( #251 )
2019-03-29 13:54:25 -07:00
Carl Lerche
4948b1053b
Bump version to v0.4.12 ( #250 )
v0.4.12
2019-03-06 12:42:20 -08:00
Michal 'vorner' Vaner
0e8b440650
Implementation of Buf for VecDeque ( #249 )
2019-03-06 11:46:42 -08:00
Sangguk Lee
e13d2a783e
Use constants in bytes.rs test code ( #247 )
2019-02-27 10:41:11 -08:00
南浦月
55dfea8c18
Impl FromIterator<&'a u8> for BytesMut/Bytes ( #244 )
2019-01-30 11:05:15 -08:00
Dax Huiberts
f3b363a385
Fix typo in bytes.rs ( #243 )
2019-01-28 10:06:28 -08:00
Ralf Jung
42b669690a
use raw ptr for potentially racy load ( #240 )
2018-12-21 11:07:20 -08:00
Ralf Jung
9504447adc
Be clear about Inner::kind being deliberate UB ( #236 )
2018-11-25 22:49:35 -08:00
Carl Lerche
b3248c8807
Bump version to v0.4.11 ( #235 )
v0.4.11
2018-11-17 14:33:25 -08:00
Ralf Jung
c6c5b8fb54
Use raw pointers for potentially racy loads ( #233 )
...
Shared references assert immutability, so any concurrent access would be UB
disregarding data race concerns.
2018-11-17 07:51:50 -08:00
Michal 'vorner' Vaner
7c3085aaec
The Reader can implement BufReader naturally ( #232 )
...
There's no reason the user should be forced to wrap it in BufReader in
case the trait is needed, because the Reader has all the bits for
supporting it naturally.
2018-11-17 07:51:41 -08:00
Michal 'vorner' Vaner
e64a123d00
Bring more attention to short reads/slices on Buff/BuffMut ( #231 )
...
The property the Buff and BuffMut can return shorter slice is quite an
important detail. Nevertheless, while it is mentioned in the
documentation, the wording makes it relatively easy to overlook. This
tries to bring more attention to it.
2018-11-17 07:51:28 -08:00
Carl Lerche
e5304410a4
Whitelist false positive std ( #234 )
2018-11-17 07:27:00 -08:00
Carl Lerche
456221d165
Bump version to v0.4.10 ( #227 )
v0.4.10
2018-09-04 13:31:26 -07:00
Carl Lerche
f09c51c34e
White list allocation ( #226 )
2018-09-03 13:36:13 -07:00
Carl Lerche
ad35fbef03
implement Buf and BufMut for Either ( #225 )
2018-09-03 10:23:00 -07:00
Federico Mena Quintero
79f05591c9
Add a subslice function for Bytes ( #198 ) ( #208 )
...
This lets us take Bytes and a &[u8] slice that is contained in it, and
create a new Bytes that corresponds to that subset slice.
Closes #198
2018-09-01 19:57:31 -07:00
Carl Lerche
ed244d3b54
Bump version to v0.4.9 ( #220 )
v0.4.9
2018-07-22 19:30:41 -07:00
Carl Lerche
dc961c3e78
Merge branch 'v0.4.x'
2018-07-12 20:19:56 -07:00
Sean McArthur
890812af1b
inline Bytes::len and Bytes::is_empty ( #211 )
2018-07-12 20:17:27 -07:00
Rafael Ávila de Espíndola
052648c3f5
Implement IntoBuf for mut slices. ( #214 )
...
With this if foo is a mutable slice, it is possible to do
foo.into_buf().put_u32_le(42);
Before this patch into_buf would create a Cursor<&'a [u8]> and it
would not be possible to write into it.
2018-07-12 20:16:08 -07:00
Roman
042aa9023b
Fix cargo doc error on nightly caused by broken link to footnote ( #218 )
2018-07-12 20:15:53 -07:00
Carl Lerche
f4100841f8
Merge branch 'v0.4.x'
2018-07-12 20:11:51 -07:00
Sean McArthur
cdfd25f314
inline Bytes::len and Bytes::is_empty ( #211 )
2018-07-12 19:05:35 -07:00
Geoffry Song
1ba5266bd9
Put type names in backticks. ( #212 )
...
I noticed that the bare `[u8]` made rustdoc nightly unhappy.
2018-07-12 19:05:02 -07:00
Rafael Ávila de Espíndola
83f68a013e
Implement IntoBuf for mut slices. ( #214 )
...
With this if foo is a mutable slice, it is possible to do
foo.into_buf().put_u32_le(42);
Before this patch into_buf would create a Cursor<&'a [u8]> and it
would not be possible to write into it.
2018-07-12 19:03:47 -07:00
Roman
63211d8c82
Fix cargo doc error on nightly caused by broken link to footnote ( #218 )
2018-07-05 10:13:01 -07:00
Sean McArthur
886dda0962
Optimize Inner::shallow_clone ( #217 )
...
- Clones when the kind is INLINE or STATIC are sped up by over double.
- Clones when the kind is ARC are spec up by about 1/3.
2018-07-03 15:21:26 -07:00
luben karavelov
6414efe83b
Fix documentation ( #219 )
2018-07-02 12:10:16 -07:00
Ashley Mannix
7785cde587
add support for 128bit numbers ( #209 )
2018-06-18 17:37:51 -07:00
Carl Lerche
d98f49e67b
Merge branch 'v0.4.x'
2018-06-18 12:52:00 -07:00
Carl Lerche
a6b9844296
Clarify license as MIT ( #216 )
...
The intent of the license was to dual license MIT & Apache 2.0. However,
the messaging was copy / pasted from rust-lang.
Clarify the license as exclusively MIT.
Fixes #215
2018-06-18 12:49:34 -07:00
Carl Lerche
8d5b46cd10
Merge branch 'v0.4.x'
2018-05-25 16:56:31 -07:00
Carl Lerche
406b048ae6
Bump version to v0.4.8 ( #206 )
v0.4.8
2018-05-25 16:50:42 -07:00
Carl Lerche
8c041142a0
Filter out tsan warnings in test harness ( #205 )
2018-05-25 15:54:13 -07:00