From c2dabe50fa56b37221291327072a8ae2f5fd5477 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Mon, 2 Dec 2019 13:54:15 -0800 Subject: [PATCH] v0.2.0 --- CHANGELOG.md | 16 ++++++++++++++++ Cargo.toml | 5 +---- src/lib.rs | 2 +- 3 files changed, 18 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 748ae83..26c8b23 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +# 0.2.0 (December 2, 2019) + +* Add `Version::HTTP_3` constant. +* Add `HeaderValue::from_maybe_shared`, `HeaderValue::from_maybe_shared_unchecked`, `Uri::from_maybe_shared`, `Authority::from_maybe_shared`, and `PathAndQuery::from_maybe_shared`. +* Change `request::Builder`, `response::Builder`, and `uri::Builder` to use by-value methods instead of by-ref. +* Change from `HttpTryFrom` trait to `std::convert::TryFrom`. +* Change `HeaderMap::entry` to no longer return a `Result`. +* Change `HeaderMap::drain` iterator to match the behavior of `IntoIter`. +* Change `Authority::port` to return an `Option` instead of `Option`. +* Change `Uri::scheme` to return `Option<&Scheme>` instead of `Option<&str>`. +* Change `Uri::authority` to return `Option<&Authority>` instead of `Option<&str>`. +* Remove `InvalidUriBytes`, `InvalidHeaderNameBytes`, and `InvalidHeaderValueBytes` error types. +* Remove `HeaderValue::from_shared`, `HeaderValue::from_shared_unchecked`, `Uri::from_shared`, `Authority::from_shared`, `Scheme::from_shared`, and `PathAndQuery::from_shared`. +* Remove `Authority::port_part`. +* Remove `Uri::scheme_part` and `Uri::authority_part`. + # 0.1.20 (November 26, 2019) * Fix possible double-free if `header::Drain` iterator is `std::mem::forgot`en (#357). diff --git a/Cargo.toml b/Cargo.toml index aa2e2a8..5795bce 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ name = "http" # - Update html_root_url in lib.rs. # - Update CHANGELOG.md. # - Create git tag -version = "0.2.0-alpha.0" +version = "0.2.0" readme = "README.md" documentation = "https://docs.rs/http" repository = "https://github.com/hyperium/http" @@ -21,9 +21,6 @@ keywords = ["http"] categories = ["web-programming"] edition = "2018" -# 0.2.x isn't ready just yet -publish = false - [dependencies] bytes = "0.5" fnv = "1.0.5" diff --git a/src/lib.rs b/src/lib.rs index 22541b5..c5a4369 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,4 +1,4 @@ -#![doc(html_root_url = "https://docs.rs/http/0.1.20")] +#![doc(html_root_url = "https://docs.rs/http/0.2.0")] //! A general purpose library of common HTTP types //!