39 Commits

Author SHA1 Message Date
Glen De Cauwsemaecker
85080a5617
use workspace dependencies for tower (#778)
Co-authored-by: Toby Lawrence <tobz@users.noreply.github.com>
2024-07-23 11:26:01 -04:00
Josh Stone
05a0a25dcc
Upgrade to indexmap v2 (MSRV 1.63) (#741)
Co-authored-by: Toby Lawrence <tobz@users.noreply.github.com>
2024-07-20 13:01:30 -04:00
Eliza Weisman
9c184d81bc
chore: bump MSRV to 1.49.0 (#645)
`tower` builds are now failing on CI because Tokio v1.17.0 bumped MSRV
to 1.49.0. This branch updates `tower`'s MSRV to 1.49.0 to track Tokio's
MSRV. I also added nicer documentation of the MSRV based on Tokio's, and
added the `rust-version` Cargo metadata to the `tower` crate's
`Cargo.toml`.

Note that `tower-service` and `tower-layer` can technically continue to
support much earlier Rust versions than `tower` can, since they don't
depend on external crates and are very small. We could consider testing
separate, older MSRVs on CI for those crates individually. I didn't do
that in this PR, though, because I wasn't sure if this was worth the
effort and I just wanted to get CI passing again.
2022-02-16 13:14:05 -08:00
David Pedersen
1c9631d7b3
chore: Bump MSRV to 1.46 (#605)
* Actually check MSCV on CI

* check broken_intra_doc_links on CI

* clean up CI

* fix other crates

* bump MSRV to 1.42 because of tracing-core

* attempt to fix http not working on 1.42

* use `--workspace` instead of `--all`

`--all` is deprecated

* make tower-service build on 1.42

* force http version 0.2.4

* actually msrv is 1.46 because of tokio

* fix running `cargo fmt`

* clean up

* also run tests on 1.46

* ignore rustsec in time
2021-10-19 16:28:55 +02:00
David Pedersen
5e0c8da260
docs: Add "Inventing the Service trait" guide (#585)
This adds the first Tower guide called "Inventing the `Service` trait". It attempts to motivate all the parts to `Service` by walking the user through how they could have invented `Service` themselves, from scratch. It goes into quite a bit of detail but hopefully it paints a somewhat complete picture in the end.

The next guide I want to write is about how to implement a proper `Timeout` middleware using `Layer`, pin-project, and all the bells and whistles.

Ref: https://github.com/tower-rs/tower/issues/33
2021-05-14 22:59:43 +02:00
Eliza Weisman
1270d691d2
chore: improve README docs, add links (#527)
This branch updates the READMEs for all Tower crates.

I've added the lib.rs docs to the `tower` crate's README, and added
crates.io, docs.rs, and updated CI badges to all the crates READMEs.
Since we no longer use Azure Pipelines for CI or Gitter for chat, I've
removed those badges and replaced them with GitHub Actions and Discord
badges, respectively.

I also fixed a typo in the `tower` lib.rs docs that was breaking some of the
RustDoc links, since I noticed it after copying those docs into the README.

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2021-01-13 10:47:42 -08:00
Eliza Weisman
992702fd20
prepare Tower 0.4 for release (#511)
This branch updates the changelogs and version numbers for Tower 0.4.

* update changelog for 0.4
* add changelog blurb
* update version to 0.4

Signed-off-by: Eliza Weisman <eliza@buoyant.io>
2021-01-07 13:35:05 -08:00
Lucio Franco
007b648ea9
Clean up readme and update status (#453) 2020-05-08 13:54:45 -04:00
Jake Ham
52d9e95a38
Fix documentation links in README (#422)
Updated the README, fixing the links to documentation. This now links
to each packages documentation on docs.rs. Not all packages have been
released to crates.io, so their documentation pages are empty.
2020-02-27 11:42:08 -05:00
Lucio Franco
a4cb384751
Remove v0.3.x branch note on readme (#368) 2019-11-29 11:19:15 -05:00
Lucio Franco
793e2e8e94
Add a note about v0.3.x branch to the readme (#312)
* Add a note about v0.3.x branch to the readme

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>

* Fix link

Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
2019-08-20 23:20:01 -04:00
Carl Lerche
ef6d203b47
Create tower-test and include tower-mock. (#237)
tower-mock is deleted in favor of having a single test crate. This crate
also includes a new macro: `assert_request_eq!`.
2019-04-07 20:42:18 -07:00
Carl Lerche
16f2d2b4fa
Consolidate limit layers (#235)
* Consolidate `limit` layers

- `InFlightLimit` and `RateLimit` are moved into `tower-limit` crate.
- `InFlightLimit` is renamed to `ConcurrencyLimit`.

Fixes #225
2019-04-05 20:08:43 -07:00
Carl Lerche
f1bb22a296
util: rename tower-service-util -> tower-util (#212) 2019-03-27 16:34:56 -07:00
Lucio Franco
b01252c5e9
Fix tower-service-util docs link (#209) 2019-03-26 14:12:44 -04:00
Lucio Franco
7a09459081 Fix readme links (#208) 2019-03-26 08:46:53 -07:00
Lucio Franco
9dfcf7e527 Add tower to the readme (#207) 2019-03-26 08:38:00 -07:00
Lucio Franco
8f3a5ea6fa
Fix doc links for unpublished crates (#206) 2019-03-26 10:16:03 -04:00
Carl Lerche
263c680ea6 Remove tower-watch (#200) 2019-03-19 18:18:59 -07:00
Carl Lerche
92f4a0cb72
Rename tower-util -> tower (#197) 2019-03-15 10:53:19 -07:00
Carl Lerche
de799582fb
Switch CI to Azure Pipelines (#171) 2019-02-28 12:08:29 -08:00
Lucio Franco
c5d70481bd
layer: Add tower-layer and the Layer trait (#163)
This change introduces the new `tower-layer` crate and the foundational `Layer` trait to go along with it. This trait allows one to easily compose a set of `Service`s that take an inner service. These services only modify the request/response. This also provides the `Layer` implementation for many of the tower crates.
2019-02-27 15:28:42 -05:00
Stefano Probst
a92a108239 Fix typo in Readme (#165) 2019-02-23 11:45:56 -05:00
Ty Coghlan
4c5ba67497 Update links in the README (#155)
Added tower-retry, removed tower-router.
2019-02-06 12:01:33 -08:00
Patrick D Hayes
d609468656 Various small typos in README (#140)
Fixes a few spelling mistakes in the README
2018-12-19 21:03:29 -08:00
John Children
17d4d9c65b Removes extra e in tower-timeout README link (#115)
Link was broken due to typo.
2018-11-02 09:44:48 -07:00
Carl Lerche
aef25abfe9
Add link to gitter (#95) 2018-08-10 11:26:34 -07:00
Corey Farwell
5c20cb8edd Add section for tower-router in README. (#94) 2018-08-10 10:56:31 -07:00
Carl Lerche
57df4b5b4d
Minor documentation improvements (#93) 2018-08-09 10:08:57 -07:00
Corey Farwell
7b6460dff2 Fix broken docs link. (#91) 2018-08-02 13:14:31 -07:00
Carl Lerche
5369879af6
Extract Service trait and related into crate. (#67)
This makes the `tower` crate available to be a "batteries included"
facade.
2018-04-25 12:35:52 -07:00
Feynman Liang
c92c2966ac Update github link in README (#53) 2018-02-26 09:12:21 -08:00
Carl Lerche
ffe0ae8d37 Add doc link 2018-01-17 12:57:48 -08:00
Carl Lerche
373ba52493 Update travis link 2017-11-16 11:47:19 -08:00
Carl Lerche
bf2f704606 Remove reference to website 2017-11-16 11:26:36 -08:00
Carl Lerche
ad6ff8c0d8 License Tower under MIT only
A dual MIT / Apache 2.0 license does not make any sense. Since the
intent of the original license was to be dual under MIT or Apache 2.0,
restricting to ony MIT is OK.
2017-11-16 09:44:44 -08:00
Eliza Weisman
270ef5a2bd s/tokio/tower (#7) 2017-09-18 12:05:09 -07:00
Alex Crichton
6c5de5610f Update docs links and such 2017-01-11 09:20:40 -08:00
Alex Crichton
821739abb9 Add a README 2016-08-26 16:27:58 -07:00