Carl Lerche
bb9bf7ee3e
Add vectored support to Buf and BufMut
2017-03-01 13:18:29 -08:00
Carl Lerche
f7f8d6c9ef
Don't re-export everything from buf module
2017-02-28 17:09:43 -08:00
Alex Crichton and Carl Lerche
87160b6232
Add doc(html_root_url)
...
Allows links in other crates to link to crates.io docs of bytes itself.
2017-02-28 16:55:10 -08:00
Carl Lerche
5c6eadfcb0
More docs and polish
2017-02-20 14:31:26 -08:00
Carl Lerche
5048eec143
Docs & polish for Buf
2017-02-16 22:15:17 -08:00
Carl Lerche
646624c130
Polish API surface
2017-02-16 16:44:38 -08:00
Carl Lerche
bababa8797
Remove Take/TakeMut
2017-02-16 10:36:00 -08:00
Carl Lerche
0e0066e8a0
Write docs and remove unecessary fns and types
2017-02-16 10:26:48 -08:00
Carl Lerche
57e84f267b
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
2016-11-02 14:23:45 -07:00
Carl Lerche
8d2508bfeb
Tweak Bytes helpers
2016-10-14 20:42:16 -07:00
Carl Lerche
d7306d949b
Rename slice_buf.rs -> slice.rs
2016-10-14 20:07:42 -07:00
Carl Lerche
4ca7e0fabf
Add IntoBuf trait
2016-09-25 22:40:39 -07:00
Carl Lerche
b1dc10e907
Rename & refactor ByteBuf -> SliceBuf
2016-09-25 22:40:35 -07:00
Carl Lerche
a7d38e29e5
Remove extra lifetime sigils
2016-09-23 14:51:48 -07:00
Carl Lerche
98e0d954b5
Reorganize crate
2016-09-23 12:05:32 -07:00
Carl Lerche
d05bfb6346
Add more Buf helpers
2016-09-23 07:53:17 -07:00
Carl Lerche
046c864543
Integrate with byteorder
2016-08-31 12:07:44 -07:00
Carl Lerche
be23af6bb7
Remove stable heap for now
2016-08-11 01:38:15 -07:00
Carl Lerche
fbebb19a02
Simplify allocation strategy for now
...
Not having `unsafe_no_drop_flag` caused some weirdness with optimizing buffers
and bytes. For now, remeove it.
2016-08-11 01:36:16 -07:00
Carl Lerche
04e0ac75e2
Huge overhaul of bytes
...
* Get rid of `ByteStr` trait
* `Bytes` is not a concrete type
* Add `BlockBuf`
* Delete lots of cruft
* Performance work
2016-08-10 15:45:31 -07:00
Carl Lerche
b2efe63c70
Get rid of SliceBuf
2016-08-05 22:49:41 -07:00
Carl Lerche
b6a424d892
Get rid of BufError
2016-08-05 21:54:29 -07:00
Carl Lerche
6529f6392a
Remove traits mod
2016-08-05 21:42:07 -07:00
Carl Lerche
dc25c7564e
Refactor heap allocation
2016-07-20 13:27:41 +02:00
Carl Lerche
270d2e2844
Freshen up buf API
2016-06-08 14:48:49 -07:00
Carl Lerche
4ce8b1c2c8
Make sub mods public to help docgen
2015-09-25 09:43:58 -07:00
Carl Lerche
ed087be853
Provide Take decorator that limits Buf size
2015-07-28 12:51:24 -07:00
Carl Lerche
e39f2ba917
Remove unstable attribute
2015-04-22 08:25:53 -07:00
Carl Lerche
c9d3427fd5
Move various ByteStr impls into separate files
2015-04-08 10:51:52 -07:00
Carl Lerche
ac42766535
Group files as buf or byte str related
2015-04-07 23:40:00 -07:00
Carl Lerche
c4f2e20eb1
Move heap allocator into a module
2015-04-07 21:06:38 -07:00
Carl Lerche
29e5dc72bb
Get compiling on Rust 1.0 beta
2015-04-03 23:45:34 -07:00
Victor Berger
635274752b
Update for new blanket impl rules.
2015-04-03 22:46:10 +02:00
Carl Lerche
f0ce42d9c3
Track Rust nightlies
2015-04-01 20:09:20 -07:00
Carl Lerche
805b15e517
Track Rust nightlies
2015-03-28 16:56:53 -07:00
Carl Lerche
8f526231d8
Track Rust nightlies
2015-03-25 12:44:38 -07:00
Carl Lerche
83680dda27
Implement Source for std::io::Read
2015-03-24 22:10:29 -07:00
Carl Lerche
bd2c643e17
Flesh out ToBytes, ByteStr::concat, and ByteStr eq
2015-03-23 23:22:21 -07:00
Carl Lerche
a87dea0bd4
Track Rust master
2015-03-23 17:12:39 -07:00
Florian Hartwig
3f9b7f6d46
Fix errors and warnings with current rust nightly
2015-03-19 16:23:29 +01:00
Carl Lerche
e806a59b4a
Fix deprecation warnings
2015-03-09 22:30:41 -07:00
Florian Hartwig and Carl Lerche
6f00c6117b
Remove RingBufReader and RingBufWriter types
2015-03-09 22:24:42 -07:00
Carl Lerche
113bff22c6
Fix a couple of bugs
2015-03-09 22:21:10 -07:00
Carl Lerche
7444721d98
Implement Debug for Bytes
2015-02-17 12:40:15 -08:00
Carl Lerche
e39ba25a95
Implement Read / Write for Buf types
2015-02-16 20:30:04 -08:00
Carl Lerche
a3fea6b1e2
Add io feature
2015-02-14 19:47:31 -08:00
Valerii Hiora
1442ad219c
Fixed error on Rust master - no drop flag requires feature
2015-02-13 09:50:53 +02:00
Carl Lerche
4ebffd0103
Add more documentation
2015-02-11 10:04:31 -08:00
Carl Lerche
974043bd13
Add read_byte and write_byte
2015-02-10 19:29:39 -08:00
Carl Lerche
17637665e9
Add a quick benchmark
2015-02-09 22:20:55 -08:00