Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/tokio-rs/bytes

Utilities for working with bytes
https://github.com/tokio-rs/bytes

Use ManuallyDrop instead of mem::forget (#675)

536db06f168bdef967afbeac0561bf774e9a1315 authored 9 months ago by Brad Dunbar <[email protected]>
Remove commented tests for Bytes::unsplit (#677)

Bytes doesn't have an unsplit method anymore. We can always retrieve
these from git history if ...

ca004117f86afccd36148dee7c8413cfaf9de6a4 authored 10 months ago by Brad Dunbar <[email protected]>
Remove redundant reserve call (#674)

7968f6f83d17175683e04ce56aa48e44ed7d0d98 authored 10 months ago by Brad Dunbar <[email protected]>
copy_to_bytes: Add panic section to docs (#676)

Fixes #454.

c5fae00c76dbd1af7ea7b6cde7a9281d82ee7cd2 authored 10 months ago by Brad Dunbar <[email protected]>
Use Iterator from the prelude (#673)

CI is [failing][failure] due to unused_imports because Iterator is
already in the prelude. Remo...

99584cc10d66cb6880a20c5ac9b9a960f9c17823 authored 10 months ago by Brad Dunbar <[email protected]>
Refactor split_at/split_to (#663)

* set len a little more concisely
* inline set_end
* remove kind assertions
* remove a duplic...

46289278f52a26c12298779f4aaebad1dcb26d35 authored 10 months ago by Brad Dunbar <[email protected]>
get_vec_pos: use &self instead of &mut self (#670)

I can't see any reason that get_vec_pos needs a &mut self.

1bcd2129d195a0722d8b5b1a16c7d33698701f2e authored 11 months ago by Brad Dunbar <[email protected]>
set_vec_pos does not need a second parameter (#672)

The second argument to `set_vec_pos` always contains the value of
`self.data`. Let's just use `...

f586ffc52589f01be1b4a44d6544b3d0226773d6 authored 11 months ago by Brad Dunbar <[email protected]>
Calculate original capacity only if necessary (#666)

We don't need the original capacity if the shared data is unique, so
let's not calculate it unt...

c6972d61328be113ec8e80c207815a4b84fe616c authored 11 months ago by Brad Dunbar <[email protected]>
Use sub instead of offset (#668)

We're always subtracting here, and we already have a usize, so `sub`
seems like a more appropri...

47e83056f28e15e4ca68056a0136f3920b753783 authored 11 months ago by Brad Dunbar <[email protected]>
Restore commented tests (#665)

These seem to have been commented by accident in #298, and are still
passing.

8bcac21cb44c112f20e8dd31475033ff448e35ce authored 11 months ago by Brad Dunbar <[email protected]>
refactor: make parameter mut in From<Vec> (#667)

Instead of re-declaring `vec`, we can just use a mut parameter.

d2e7abdb290e663f025a22a7d9e14e019b6abdb2 authored 11 months ago by Brad Dunbar <[email protected]>
Remove unreachable else branch (#661)

e24587dd6197dbc58d6c2b6eb7186df99b04d881 authored 11 months ago by Brad Dunbar <[email protected]>
Remove an unnecessary else branch (#662)

9257a6ea0852c03f4672e5f8346d3d614543e270 authored 11 months ago by Brad Dunbar <[email protected]>
Remove unnecessary namespace qualifier (#660)

0ba3b4c4cd74a0ad8566277e1a1533fa9e895756 authored 11 months ago by Brad Dunbar <[email protected]>
add `Bytes::is_unique` (#643)

0864aea9704ac12fa53ee96a7f968e51c9dabba1 authored 11 months ago by Cyborus04 <[email protected]>
BytesMut: Assert alignment of Shared (#652)

Back in #362, an assertion was added to ensure that the alignment of
bytes::Shared is even so w...

abb4a2e66cab68a6d1deb3d37377625443794cfd authored 11 months ago by Brad Dunbar <[email protected]>
Update CI config (#650)

09214ba51bdace6f6cb91740cee9514fc08d55ce authored 12 months ago by Taiki Endo <[email protected]>
Update loom to 0.7 (#651)

fbc64bcc6713b51fa1253cf18fc80c904796ddb5 authored 12 months ago by Taiki Endo <[email protected]>
readme: add security policy (#649)

3bf6583b5cece02526b9b225e6ace0552a36ded3 authored 12 months ago by Alice Ryhl <[email protected]>
Use `self.` instead of `Self::` (#642)

I was a little confused about these calls using `Self::` instead of
`self.` here. Is there a re...

dbbdb63d7691066922ac4c7753e6dd95c07f8fbf authored 12 months ago by Brad Dunbar <[email protected]>
Simplify UninitSlice::as_uninit_slice_mut() logic (#644)

This reworks `UninitSlice::as_uninit_slice_mut()` using equivalent
simpler logic.

f73c6c8e8543ee15741c788d105e2b4235f1bc7b authored 12 months ago by Luca Bruno <[email protected]>
docs: fix broken links (#639)

Fixed a few broken links and converted a lot of them from the
html-link to intra-doc links.

72cbb92e0e53680c67c27b56fabbe1f3ed5dbae9 authored about 1 year ago by Gabriel Goller <[email protected]>
docs: typo fix (#637)

Co-authored-by: Daniel Bauman <[email protected]>

bde8c50703869f54b905560eb62c2478a0111885 authored about 1 year ago by DanielB <[email protected]>
Various cleanup (#635)

fd9243f9e2fe2027243b1a23d518c723c24a17b7 authored about 1 year ago by Alice Ryhl <[email protected]>
docs: fix some spelling mistakes (#633)

a4e16a552bf5bee0b75d549a98551d5ab1b074e4 authored about 1 year ago by mxsm <[email protected]>
Move comment to correct constant (#629)

a14ef4617c1d041cd4b479cd7f5453054b8e639a authored over 1 year ago by Lucas Kent <[email protected]>
doc: fix changelog typo (#628)

bd9c164cb65cf9b80436c3229a6753dc9c4e73eb authored over 1 year ago by Alice Ryhl <[email protected]>
chore: prepare bytes v1.5.0 (#627)

74e6e200fd671340d4d4a874f83776def04f6c7b authored over 1 year ago by Alice Ryhl <[email protected]>
Rename UninitSlice constructors for consistency with ReadBuf (#599)

tokio::io::ReadBuf uses names `new` and `uninit` for its constructors.
For consistency with tha...

64c4fa286771ad9e522ffbefc576bcf7b76933d0 authored over 1 year ago by Michal Nazarewicz <[email protected]>
Fix CI failure (#616)

c7756c3e5976246926a5c8227c181a97d80cf22b authored over 1 year ago by Taiki Endo <[email protected]>
Implement BufMut for `&mut [MaybeUninit<u8>]` (#597)

b29112ce4484424a0137173310ec8b9f84db27ae authored almost 2 years ago by Michal Nazarewicz <[email protected]>
Add a safe way to create UninitSlice from slices (#598)

Introduce UninitSlice::from_slice and UninitSlice::from_uninit_slice
methods which safely creat...

99a27542a0b90653f4ab66076c11a6a9ae706a0d authored almost 2 years ago by Michal Nazarewicz <[email protected]>
Mark BytesMut::extend_from_slice as inline (#595)

This function can be hot in applications that do a lot of encoding. Ideally would do the same fo...

74b04c7aae5fd7e73f4283774eab0ef72a26a8a7 authored almost 2 years ago by Paa Kojo Samanpa <[email protected]>
chore: prepare bytes v1.4.0 (#593)

21ed3328364716fa30a4bf7502c913bbf0a90f45 authored almost 2 years ago by Alice Ryhl <[email protected]>
Avoid large reallocations when freezing BytesMut (#592)

When we freeze a BytesMut, we turn it into a Vec, and then convert that
to a Bytes. Currently,...

05e9d5cab95e5ce1d57dd498a9567639de50f841 authored almost 2 years ago by brian m. carlson <[email protected]>
Document which functions require `std` (#591)

f15bba3375f7e75f412b085f75b3112cceaa6ef1 authored almost 2 years ago by 0xc0001a2040 <[email protected]>
Fix duplicate "the the" typos (#585)

Co-authored-by: Nicolae Mihalache <[email protected]>

c93a94b974d8c7c926c4e49ed4ce4645fb0e3801 authored about 2 years ago by Nicolae Mihalache <[email protected]>
make IntoIter constructor public (#581)

050d65b2cee8b2272687d798dc209dc03fe92719 authored about 2 years ago by Matthijs van Otterdijk <[email protected]>
chore: prepare bytes v1.3.0 (#579)

9b227220dfeb5d176b807c9bf27e1ee438935f78 authored about 2 years ago by Sean Lynch <[email protected]>
Implement native-endian get and put functions for Buf and BufMut (#576)

Fixes #549

8a8c41f5c215e03d94ab9b38a88f5991b4cf24ab authored about 2 years ago by Sean Lynch <[email protected]>
Update nightly snapshot to the current one (#577)

5c7b4317e019f9b46dcc11e5a6a18e514ce85ebe authored about 2 years ago by Sean Lynch <[email protected]>
Rename and expose `BytesMut::spare_capacity_mut` (#572)

6e4b1f244b15dc486578103ae2db927bedee2d3e authored about 2 years ago by Yotam Ofek <[email protected]>
docs: Bytes::new etc should return Self not Bytes (#568)

a36f661354a99f8dd14b15acfe69bc16d5505fbe authored over 2 years ago by Adam Chalmers <[email protected]>
Don't have important data in unused capacity when calling reserve (#563)

d1b5d4ceb1645d0843729479a04be6c119a04369 authored over 2 years ago by Alice Ryhl <[email protected]>
chore: prepare bytes v1.2.1 (#561)

b7249149a926f0d5f9f89897853eb7dc7506d27b authored over 2 years ago by Alice Ryhl <[email protected]>
Fix reserve over allocating underlying buffer (#560)

Fixes calls to `reserve` when the underlying shared buffer was already
big enough to fit the re...

d6e1999d978a688625441348a81504ccab669aed authored over 2 years ago by Matt Schulte <[email protected]>
chore: prepare bytes v1.2.0 (#556)

38fd42acbaced11ff19f0a4ca2af44a308af5063 authored over 2 years ago by Alice Ryhl <[email protected]>
Fix amortized asymptotics of `BytesMut` (#555)

Signed-off-by: Jiahao XU <[email protected]>
Co-authored-by: Frank Steffahn <frank.steffahn...

7553a67be2b9d7ef2ac42dbcd38fd8365ee64cb5 authored over 2 years ago by Jiahao XU <[email protected]>
Add conversion from Bytes to Vec<u8> (#547)

Signed-off-by: Jiahao XU <[email protected]>
Co-authored-by: Alice Ryhl <[email protected]>

cd188cbd67c073128fdc339be8d5d67436d76f36 authored over 2 years ago by Jiahao XU <[email protected]>
Fix: `From<BytesMut> fo Vec<u8>` implementation (#554)

Signed-off-by: Jiahao XU <[email protected]>

10d1f6ec5c4e878aad9d13140d3479b3ea78ffcf authored over 2 years ago by Jiahao XU <[email protected]>
Add conversion from BytesMut to Vec<u8> (#543)

068ed41bc02c21fe0a0a4d8e95af8a4668276f5d authored over 2 years ago by Jiahao XU <[email protected]>
miri: don't use int2ptr casts for invalid pointers (#553)

f514bd38dac85695e9053d990b251643e9e4ef92 authored over 2 years ago by Alice Ryhl <[email protected]>
chore: Fix unused warnings (#551)

28a1eab1e0531a0e7b9624e474a8c06dfd5c8072 authored over 2 years ago by Lucio Franco <[email protected]>
Fix chain remaining_mut(), allowing to chain growing buffer (#488)

3536017ccfc5cf2d837a5cee8262b1de6c3eafc7 authored over 2 years ago by Zettroke <[email protected]>
Add `UninitSlice::as_uninit_slice_mut()` (#548)

This adds an unsafe method to convert a `&mut UninitSlice` into a
`&mut [MaybeUninit<u8>]`. Thi...

b8d27c016f53f0c1fea920223bc5a92f329d47df authored over 2 years ago by Erick Tryzelaar <[email protected]>
Update actions/checkout action to v3 (#546)

0ce4fe3c91f0d008674869348ffd804b78846eca authored over 2 years ago by Taiki Endo <[email protected]>
Only avoid pointer casts when using miri (#545)

716a0b189e3508dbab808e067a8bfb857401a744 authored over 2 years ago by Alice Ryhl <[email protected]>
Revert accidental push directly to master

This reverts commit 89061c323861c4e9555881fef940836f1cd132cc.

Why am I even able to push to mas...

b4b2c18c27cc0a33d68e7f0db29e0b6626fef6e8 authored over 2 years ago by Alice Ryhl <[email protected]>
Only avoid pointer casts when using miri

89061c323861c4e9555881fef940836f1cd132cc authored over 2 years ago by Alice Ryhl <[email protected]>
Fix bugs in `BytesMut::reserve_inner` (#544)

0a2c43af8811fecf6fd08379f16571594bcbb738 authored over 2 years ago by Jiahao XU <[email protected]>
Make strict provenance compatible (#542)

8198f9e28ebbf59760af25748d18d6a43260edf3 authored over 2 years ago by Alice Ryhl <[email protected]>
Add TSAN support (#541)

547a32033ec60edc143da33c6c0fbde9d845e91a authored over 2 years ago by Alice Ryhl <[email protected]>
Fix aliasing in Clone by using a raw pointer (#523)

Previously, this code produced a &mut[u8] and a Box<[u8]> to the shared
allocation upon cloning...

724476982b35f094b59d160ecc02c042082ac604 authored over 2 years ago by Ben Kimock <[email protected]>
Clarify `BytesMut::unsplit` docs (#535)

9e6edd18d297ec1b1bf9e01b1fce7a52eacdd8cc authored over 2 years ago by Evan Cameron <[email protected]>
docs: redraw layout diagram with box drawing characters. (#539)

I find this diagram very helpful, but a little hard to distinguish
between the boxes and the li...

e4c723697d49b5b6fa1ae92db18e9affe6c6744f authored over 2 years ago by Anthony Deschamps <[email protected]>
Optimize BytesMut::reserve: Reuse vec if possible (#529)

* Optimize `BytesMut::reserve`: Reuse vec if possible

If the `BytesMut` holds a unqiue refere...

d4f5023383d233819e727d2b223493ba1c730211 authored almost 3 years ago by Jiahao XU <[email protected]>
update Miri CI config (#534)

88f5e12350db414c5beac65d488f634fe296223a authored almost 3 years ago by Ralf Jung <[email protected]>
Implement `Extend<Bytes>` for `BytesMut` (#527)

131dae161fff368e8b6dbc8da0abf053dac5e523 authored almost 3 years ago by Rob Ede <[email protected]>
Address various clippy warnings (#528)

0e3b2466f199375031006857164fbf70e3ea479f authored almost 3 years ago by Rob Ede <[email protected]>
Add `BytesMut::zeroed` (#517)

68afb40df9ea2e61a93d0e26f6f8a9f231979452 authored about 3 years ago by Donough Liu <[email protected]>
`const`-ify `Bytes::len` and `Bytes::is_empty` (#514)

d946ef2e91651a4d73a04b48715ecf0cde6db75d authored about 3 years ago by Cyborus04 <[email protected]>
Appease miri (#515)

Rewrote the ledger in test_bytes_vec_alloc.rs to not piss off miri. The ledger is now a table wi...

ba5c5c93affe9386dd052c5236cad83057f9a81d authored about 3 years ago by Noah Kennedy <[email protected]>
chore: prepare bytes v1.1.0 (#509)

ebc61e5af14cd9b436ba880cf19e849b05a04c29 authored over 3 years ago by Alice Ryhl <[email protected]>
Clarifying actions of clear and truncate. (#508)

55e296850d3de4563ef5b260b076e6c697391604 authored over 3 years ago by Christopher Hotchkiss <[email protected]>
impl From<Box<[u8]>> for Bytes (#504)

0e9fa0b602eb0fb977e2e900cf43532cd869d6b3 authored over 3 years ago by Ian Jackson <[email protected]>
ci: fetch cargo hack from github release (#507)

Co-authored-by: Taiki Endo <[email protected]>

ee24be7fa0561169c39308678c35e1ac0f172d5a authored over 3 years ago by Alice Ryhl <[email protected]>
BufMut::put_bytes(self, val, cnt) (#487)

Equivalent to

```
for _ in 0..cnt {
self.put_u8(val);
}
```

but may work faster.
...

2697fa7a9dd871d8d64d1959b7ac46227b7b23b4 authored over 3 years ago by Stepan Koltsov <[email protected]>
Clarify BufPut::put_int behavior (#486)

* writes low bytes, discards high bytes
* panics if `nbytes` is greater than 8

fa9cbf1258cea7812d4009639ed8700b987d8d4e authored over 3 years ago by Stepan Koltsov <[email protected]>
Clarify BufMut allocation guarantees (#501)

ab8e3c01a8fae128971cea43eca18da03482cb29 authored over 3 years ago by Alice Ryhl <[email protected]>
Remove doc URLs (#498)

f34dc5c3f9e6a3a11e315631055194a733ac1d08 authored over 3 years ago by Taiki Endo <[email protected]>
Keep capacity when unsplit on empty other buf (#502)

baaf12d22a844350998d2f60ab3bc78df12ab29a authored over 3 years ago by Gbillou <[email protected]>
Use ubuntu-latest instead of ubuntu-16.04 (#497)

ed1d24e57079a86c6201b5fd6be6f789265f0e6a authored over 3 years ago by Taiki Endo <[email protected]>
Update loom to 0.5 (#494)

b89247c713c6c77089cfd722dc4632db4ae4ccb3 authored over 3 years ago by Taiki Endo <[email protected]>
Fully inline BytesMut::new (#493)

9c770188fdd0029d10bf21d7805f2ff0158c09bb authored over 3 years ago by Noah <[email protected]>
Specialize copy_to_bytes for Chain and Take (#481)

Avoid allocation when `Take` or `Chain` is composed of `Bytes`
objects.

This works now for `...

b9eade12a57b923a54376762ae908da1cff6bcd4 authored over 3 years ago by Stepan Koltsov <[email protected]>
Add inline tags to UninitSlice methods (#443)

This appears to be the primary cause of significant performance
regressions in the `prost` test...

3d5624a452af67e323ead2855e26b583163e5b99 authored over 3 years ago by Dan Burkert <[email protected]>
Panic on integer overflow in Chain::remaining (#482)

Make it safer.

2428c152a67c06057a98d9d29b08389cb3429c1f authored almost 4 years ago by Stepan Koltsov <[email protected]>
override put_slice for &mut [u8] (#483)

268f6f80b4685b53f57706abc6aef31f46b54738 authored almost 4 years ago by Zettroke <[email protected]>
Make bytes_mut -> chunk_mut rename more easily discoverable (#471)

e4182808df772e331fbd25c48f2f1ab79c0d7c20 authored almost 4 years ago by Alice Ryhl <[email protected]>
docs: fix broken Take link (#466)

8daf43e9bde134e32fc0b8938abc92695f6850d1 authored almost 4 years ago by Christopher Bunn <[email protected]>
prepare 1.0.1 release (#460)

7b18c1c076adf9dff4dca28ffc1bbd8759860798 authored almost 4 years ago by Alice Ryhl <[email protected]>
use Box::into_raw instead of mem-forget-in-disguise (#458)

df20a683567909f3e33512a22862b0de954881f4 authored almost 4 years ago by Ralf Jung <[email protected]>
add inline for Vec::put_slice (#459)

8758a1aba594ad0e721614dff5c523f130f8eb82 authored almost 4 years ago by laizy <[email protected]>
CI: run test suite in Miri (#456)

27a0f9ca6e01b953805684eff535a14eaff937d0 authored almost 4 years ago by Ralf Jung <[email protected]>
Fix deprecation warning (#457)

ed71a7beb3fd0cc67cad08da2643cff2732f6b52 authored almost 4 years ago by Alice Ryhl <[email protected]>
chore: prepare v1.0.0 release (#453)

064ad9a1a07e3fb62fb0e8ec17a637f45c0890ed authored almost 4 years ago by Carl Lerche <[email protected]>
deps: update loom to 0.4 (#452)

ed1d1946604f97c35440536a4ddae970d665ce13 authored almost 4 years ago by Taiki Endo <[email protected]>
Update readme / changelog (#451)

e398b0a209dd5f71687eba4920c6ea87e40f0e70 authored about 4 years ago by Arve Knudsen <[email protected]>
Rename Buf/BufMut, methods to chunk/chunk_mut (#450)

The `bytes()` / `bytes_mut()` name implies the method returns the full
set of bytes represented...

06907f3e7badc98b83902c27ab19661693b0979a authored about 4 years ago by Carl Lerche <[email protected]>