mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-07 00:00:13 +02:00
prepare v0.5.0 release (#319)
This commit is contained in:
+32
-1
@@ -1,4 +1,35 @@
|
|||||||
# 0.5.0 (unreleased)
|
# 0.5.0 (November 25, 2019)
|
||||||
|
|
||||||
|
### Fix
|
||||||
|
- potential overflow in `copy_to_slice`
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Increased minimum supported Rust version to 1.39.
|
||||||
|
- `Bytes` is now a "trait object", allowing for custom allocation strategies (#298)
|
||||||
|
- `BytesMut` implicitly grows internal storage. `remaining_mut()` returns
|
||||||
|
`usize::MAX` (#316).
|
||||||
|
- `BufMut::bytes_mut` returns `&mut [MaybeUninit<u8>]` to reflect the unknown
|
||||||
|
initialization state (#305).
|
||||||
|
- `Buf` / `BufMut` implementations for `&[u8]` and `&mut [u8]`
|
||||||
|
respectively (#261).
|
||||||
|
- Move `Buf` / `BufMut` "extra" functions to an extension trait (#306).
|
||||||
|
- `BufMutExt::limit` (#309).
|
||||||
|
- `Bytes::slice` takes a `RangeBounds` argument (#265).
|
||||||
|
- `Bytes::from_static` is now a `const fn` (#311).
|
||||||
|
- A multitude of smaller performance optimizations.
|
||||||
|
|
||||||
|
### Added
|
||||||
|
- `no_std` support (#281).
|
||||||
|
- `get_*`, `put_*`, `get_*_le`, and `put_*le` accessors for handling byte order.
|
||||||
|
- `BorrowMut` implementation for `BytesMut` (#185).
|
||||||
|
|
||||||
|
### Removed
|
||||||
|
- `IntoBuf` (#288).
|
||||||
|
- `Buf` implementation for `&str` (#301).
|
||||||
|
- `byteorder` dependency (#280).
|
||||||
|
- `iovec` dependency, use `std::IoSlice` instead (#263).
|
||||||
|
- optional `either` dependency (#315).
|
||||||
|
- optional `i128` feature -- now available on stable. (#276).
|
||||||
|
|
||||||
# 0.4.12 (March 6, 2019)
|
# 0.4.12 (March 6, 2019)
|
||||||
|
|
||||||
|
|||||||
+9
-11
@@ -1,24 +1,22 @@
|
|||||||
[package]
|
[package]
|
||||||
|
|
||||||
name = "bytes"
|
name = "bytes"
|
||||||
# When releasing to crates.io:
|
# When releasing to crates.io:
|
||||||
# - Update html_root_url.
|
# - Update html_root_url.
|
||||||
# - Update CHANGELOG.md.
|
# - Update CHANGELOG.md.
|
||||||
# - Update doc URL.
|
# - Update doc URL.
|
||||||
# - Create "v0.4.x" git tag.
|
# - Create "v0.5.x" git tag.
|
||||||
version = "0.5.0"
|
version = "0.5.0"
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
authors = ["Carl Lerche <[email protected]>"]
|
authors = ["Carl Lerche <[email protected]>"]
|
||||||
description = "Types and traits for working with bytes"
|
description = "Types and traits for working with bytes"
|
||||||
documentation = "https://docs.rs/bytes"
|
documentation = "https://docs.rs/bytes"
|
||||||
repository = "https://github.com/tokio-rs/bytes"
|
repository = "https://github.com/tokio-rs/bytes"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
keywords = ["buffers", "zero-copy", "io"]
|
keywords = ["buffers", "zero-copy", "io"]
|
||||||
categories = ["network-programming", "data-structures"]
|
categories = ["network-programming", "data-structures"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
publish = false
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["std"]
|
default = ["std"]
|
||||||
std = []
|
std = []
|
||||||
|
|||||||
+4
-4
@@ -1,3 +1,7 @@
|
|||||||
|
#![deny(warnings, missing_docs, missing_debug_implementations, rust_2018_idioms)]
|
||||||
|
#![doc(html_root_url = "https://docs.rs/bytes/0.5.0")]
|
||||||
|
#![no_std]
|
||||||
|
|
||||||
//! Provides abstractions for working with bytes.
|
//! Provides abstractions for working with bytes.
|
||||||
//!
|
//!
|
||||||
//! The `bytes` crate provides an efficient byte buffer structure
|
//! The `bytes` crate provides an efficient byte buffer structure
|
||||||
@@ -68,10 +72,6 @@
|
|||||||
//! perform a syscall, which has the potential of failing. Operations on `Buf`
|
//! perform a syscall, which has the potential of failing. Operations on `Buf`
|
||||||
//! and `BufMut` are infallible.
|
//! and `BufMut` are infallible.
|
||||||
|
|
||||||
#![deny(warnings, missing_docs, missing_debug_implementations, rust_2018_idioms)]
|
|
||||||
#![doc(html_root_url = "https://docs.rs/bytes/0.5.0")]
|
|
||||||
|
|
||||||
#![no_std]
|
|
||||||
|
|
||||||
extern crate alloc;
|
extern crate alloc;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user