From f07fa42a28b2981acd1d9806e5eae8aa61503525 Mon Sep 17 00:00:00 2001 From: David Barsky Date: Thu, 1 Aug 2024 13:07:06 -0400 Subject: [PATCH] chore: prepare to release tower-0.5.0, tower-layer-0.3.3, tower-service-0.3.3, and tower-test-0.4.1 --- tower-layer/CHANGELOG.md | 18 ++++++++++++++++++ tower-layer/Cargo.toml | 6 +++--- tower-service/CHANGELOG.md | 10 ++++++++-- tower-service/Cargo.toml | 4 ++-- tower-test/CHANGELOG.md | 4 ++++ tower-test/Cargo.toml | 2 +- tower/CHANGELOG.md | 26 +++++++++++++++++++++++--- tower/Cargo.toml | 4 ++-- tower/README.md | 4 ++-- 9 files changed, 63 insertions(+), 15 deletions(-) diff --git a/tower-layer/CHANGELOG.md b/tower-layer/CHANGELOG.md index b47cf6b55..1ca7a54bf 100644 --- a/tower-layer/CHANGELOG.md +++ b/tower-layer/CHANGELOG.md @@ -1,3 +1,21 @@ +# 0.3.3 (August 1, 2024) + +### Added + +- **builder,util**: add convenience methods for boxing services ([#616]) +- **all**: new functions const when possible ([#760]) + +[#616]: https://github.com/tower-rs/tower/pull/616 +[#760]: https://github.com/tower-rs/tower/pull/760 + +# 0.3.2 (Octpber 10, 2022) + +## Added + +- Implement `Layer` for tuples of up to 16 elements ([#694]) + +[#694]: https://github.com/tower-rs/tower/pull/694 + # 0.3.1 (January 7, 2021) ### Added diff --git a/tower-layer/Cargo.toml b/tower-layer/Cargo.toml index 21883b589..fa4beeeea 100644 --- a/tower-layer/Cargo.toml +++ b/tower-layer/Cargo.toml @@ -6,13 +6,13 @@ name = "tower-layer" # - README.md # - Update CHANGELOG.md. # - Create "v0.1.x" git tag. -version = "0.3.2" +version = "0.3.3" authors = ["Tower Maintainers "] license = "MIT" readme = "README.md" repository = "https://github.com/tower-rs/tower" homepage = "https://github.com/tower-rs/tower" -documentation = "https://docs.rs/tower-layer/0.3.0-alpha.2" +documentation = "https://docs.rs/tower-layer/0.3.3" description = """ Decorates a `Service` to allow easy composition between `Service`s. """ @@ -23,4 +23,4 @@ edition = "2018" [dev-dependencies] tower-service = { version = "0.3.0", path = "../tower-service" } -tower = { version = "0.4", path = "../tower" } +tower = { version = "0.5.0", path = "../tower" } diff --git a/tower-service/CHANGELOG.md b/tower-service/CHANGELOG.md index 15e4b8eff..948fc3c3d 100644 --- a/tower-service/CHANGELOG.md +++ b/tower-service/CHANGELOG.md @@ -1,6 +1,12 @@ -# Unreleased +# 0.3.2 -- Clarify subtlety around cloning and readiness in the `Service` docs. +- **all**: new functions const when possible ([#760]) +- **documentation**: Clarify subtlety around cloning and readiness in the `Service` docs. ([#622]) +- **documentation**: service: Call inner.poll_ready() in docs when cloning inner ([#679]) + +[#760]: https://github.com/tower-rs/tower/pull/760 +[#622]: https://github.com/tower-rs/tower/pull/662 +[#679]: https://github.com/tower-rs/tower/pull/679 # 0.3.1 (November 29, 2019) diff --git a/tower-service/Cargo.toml b/tower-service/Cargo.toml index 0e6f5b25a..7f9be7399 100644 --- a/tower-service/Cargo.toml +++ b/tower-service/Cargo.toml @@ -6,13 +6,13 @@ name = "tower-service" # - README.md # - Update CHANGELOG.md. # - Create "v0.2.x" git tag. -version = "0.3.2" +version = "0.3.3" authors = ["Tower Maintainers "] license = "MIT" readme = "README.md" repository = "https://github.com/tower-rs/tower" homepage = "https://github.com/tower-rs/tower" -documentation = "https://docs.rs/tower-service/0.3.1" +documentation = "https://docs.rs/tower-service/0.3.3" description = """ Trait representing an asynchronous, request / response based, client or server. """ diff --git a/tower-test/CHANGELOG.md b/tower-test/CHANGELOG.md index c115895d1..48fd6e69f 100644 --- a/tower-test/CHANGELOG.md +++ b/tower-test/CHANGELOG.md @@ -1,3 +1,7 @@ +# 0.5.0 (August 1, 2023) + +- Update dependency on tower to 0.5.0-alpha.1. + # 0.4.0 (January 7, 2021) - Updated `tokio-test` dependency to 0.4 diff --git a/tower-test/Cargo.toml b/tower-test/Cargo.toml index fad3cd5b4..24c7d7e22 100644 --- a/tower-test/Cargo.toml +++ b/tower-test/Cargo.toml @@ -6,7 +6,7 @@ name = "tower-test" # - README.md # - Update CHANGELOG.md. # - Create "v0.1.x" git tag. -version = "0.4.0" +version = "0.4.1" authors = ["Tower Maintainers "] license = "MIT" readme = "README.md" diff --git a/tower/CHANGELOG.md b/tower/CHANGELOG.md index 22a40d683..d2777a3fb 100644 --- a/tower/CHANGELOG.md +++ b/tower/CHANGELOG.md @@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -# Unreleased +# 0.5.0 ### Fixed @@ -17,11 +17,31 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 future ([#652]) - **retry**: **Breaking Change** `retry::Policy::retry` now accepts `&mut Req` and `&mut Res` instead of the previous mutable versions. This increases the flexibility of the retry policy. To update, update your method signature to include `mut` for both parameters. ([#584]) +- **retry**: **Breaking Change** Change Policy to accept &mut self ([#681]) +- **retry**: Add generic backoff utilities ([#685]) +- **retry**: Add Budget trait. This allows end-users to implement their own budget and bucket implementations. ([#703]) +- **reconnect**: **Breaking Change** Remove unused generic parameter from `Reconnect::new` ([#755]) +- **ready-cache**: Allow iteration over ready services ([#700]) +- **discover**: Implement `Clone` for Change ([#701]) +- **util**: Add a BoxCloneServiceLayer ([#708]) +- **rng**: use a simpler random 2-sampler ([#716]) +- **filter**: Derive `Clone` for `AsyncFilterLayer` ([#731]) +- **general**: Update IndexMap ([#741]) +- **MSRV**: Increase MSRV to 1.63.0 ([#741]) - +[#702]: https://github.com/tower-rs/tower/pull/702 [#652]: https://github.com/tower-rs/tower/pull/652 [#584]: https://github.com/tower-rs/tower/pull/584 -[#702]: https://github.com/tower-rs/tower/pull/702 +[#681]: https://github.com/tower-rs/tower/pull/681 +[#685]: https://github.com/tower-rs/tower/pull/685 +[#703]: https://github.com/tower-rs/tower/pull/703 +[#755]: https://github.com/tower-rs/tower/pull/755 +[#700]: https://github.com/tower-rs/tower/pull/700 +[#701]: https://github.com/tower-rs/tower/pull/701 +[#708]: https://github.com/tower-rs/tower/pull/708 +[#716]: https://github.com/tower-rs/tower/pull/716 +[#731]: https://github.com/tower-rs/tower/pull/731 +[#741]: https://github.com/tower-rs/tower/pull/741 # 0.4.12 (February 16, 2022) diff --git a/tower/Cargo.toml b/tower/Cargo.toml index 4529d8ce3..8dfa53559 100644 --- a/tower/Cargo.toml +++ b/tower/Cargo.toml @@ -6,13 +6,13 @@ name = "tower" # - README.md # - Update CHANGELOG.md. # - Create "vX.X.X" git tag. -version = "0.4.13" +version = "0.5.0" authors = ["Tower Maintainers "] license = "MIT" readme = "README.md" repository = "https://github.com/tower-rs/tower" homepage = "https://github.com/tower-rs/tower" -documentation = "https://docs.rs/tower/0.4.12" +documentation = "https://docs.rs/tower/0.5.0" description = """ Tower is a library of modular and reusable components for building robust clients and servers. diff --git a/tower/README.md b/tower/README.md index f5d196d7b..da222df90 100644 --- a/tower/README.md +++ b/tower/README.md @@ -141,14 +141,14 @@ To get started using all of Tower's optional middleware, add this to your `Cargo.toml`: ```toml -tower = { version = "0.4", features = ["full"] } +tower = { version = "0.5.0", features = ["full"] } ``` Alternatively, you can only enable some features. For example, to enable only the [`retry`] and [`timeout`][timeouts] middleware, write: ```toml -tower = { version = "0.4", features = ["retry", "timeout"] } +tower = { version = "0.5.0", features = ["retry", "timeout"] } ``` See [here][all_layers] for a complete list of all middleware provided by