Skip to content

Commit

Permalink
tower: prepare to release v0.4.5 (#558)
Browse files Browse the repository at this point in the history
* tower: prepare to release v0.4.5

* Minor docs fix

* fix wordings

* Fix tense

* more wording

* move
  • Loading branch information
davidpdrsn committed Feb 10, 2021
1 parent ec547b3 commit ba3d431
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 12 deletions.
25 changes: 19 additions & 6 deletions tower/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,33 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

# Unreleased

None.

# 0.4.5 (February 10, 2021)

### Added

- **util**: Add `ServiceExt::map_future`. ([#542])
- **util**: Make combinators implement `Debug` in more cases
- `tracing` is now only pulled in for the features that need it.
- **util**: Add `option_layer` to convert an `Option<Layer>` into a `Layer`. ([#555])
- **builder**: Add `ServiceBuilder::option_layer` to optionally add a layer. ([#555])
- **make**: Add `Shared` which lets you implement `MakeService` by cloning a
service. ([#533])

### Fixed

- **util**: Make combinators that contain closures implement `Debug`. They
previously wouldn't since closures never implement `Debug`. ([#552])
- **steer**: Implement `Clone` for `Steer`. ([#554])
- **spawn-ready**: SpawnReady now propagates the current `tracing` span to
spawned tasks ([#557])
- **steer**: `Steer` now implements `Clone`.
- **make**: Added `Shared` which lets you implement `MakeService` by cloning a
service.
- Only pull in `tracing` for the features that need it. ([#551])

[#542]: https://github.com/tower-rs/tower/pull/542
[#555]: https://github.com/tower-rs/tower/pull/555
[#557]: https://github.com/tower-rs/tower/pull/557
[#533]: https://github.com/tower-rs/tower/pull/533
[#551]: https://github.com/tower-rs/tower/pull/551
[#554]: https://github.com/tower-rs/tower/pull/554
[#552]: https://github.com/tower-rs/tower/pull/552

# 0.4.4 (January 20, 2021)

Expand Down
4 changes: 2 additions & 2 deletions tower/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ name = "tower"
# - README.md
# - Update CHANGELOG.md.
# - Create "vX.X.X" git tag.
version = "0.4.4"
version = "0.4.5"
authors = ["Tower Maintainers <team@tower-rs.com>"]
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.4"
documentation = "https://docs.rs/tower/0.4.5"
description = """
Tower is a library of modular and reusable components for building robust
clients and servers.
Expand Down
2 changes: 1 addition & 1 deletion tower/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#![doc(html_root_url = "https://docs.rs/tower/0.4.4")]
#![doc(html_root_url = "https://docs.rs/tower/0.4.5")]
#![warn(
missing_debug_implementations,
missing_docs,
Expand Down
7 changes: 4 additions & 3 deletions tower/src/util/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -953,9 +953,10 @@ impl<T: ?Sized, Request> ServiceExt<Request> for T where T: tower_service::Servi
/// # let timeout = Some(Duration::new(10, 0));
/// // Layer to apply a timeout if configured
/// let maybe_timeout = option_layer(timeout.map(TimeoutLayer::new));
/// ServiceBuilder::new()
/// .layer(maybe_timeout)
/// .service(svc);
///
/// ServiceBuilder::new()
/// .layer(maybe_timeout)
/// .service(svc);
/// # }
/// ```
///
Expand Down

0 comments on commit ba3d431

Please sign in to comment.