594 Commits

Author SHA1 Message Date
Icemic
9754acb5dc
fix: Use minimal tokio features (#828) 2025-06-30 05:37:12 +00:00
tottoto
b79c0c7497
chore: Remove unused dependency (#822) 2025-06-18 00:38:41 +02:00
Jonas Platte
6a3ab07b4c
style: address clippy lints (#827) 2025-06-12 13:30:19 -04:00
Tait Hoyem
ec81e5797b
no-std compatiblity for underlying traits (#810) 2025-06-01 00:02:07 +02:00
tottoto
81658e65ad
chore: Replace type related to future with standard library (#805) 2025-04-29 13:14:11 -07:00
katelyn martin
abb375d08c
chore: add Buffer breaking change to changelog (#819)
in #635, some subtle breaking changes were made to how `Buffer` works.

this is documented in the description of that PR, here:

> I had to change some of the integration tests slightly as part of this
> change. This is because the buffer implementation using semaphore
> permits is _very subtly_ different from one using a bounded channel. In
> the `Semaphore`-based implementation, a semaphore permit is stored in
> the `Message` struct sent over the channel. This is so that the capacity
> is used as long as the message is in flight. However, when the worker
> task is processing a message that's been recieved from the channel,
> the permit is still not dropped. Essentially, the one message actively
> held by the worker task _also_ occupies one "slot" of capacity, so the
> actual channel capacity is one less than the value passed to the
> constructor, _once the first request has been sent to the worker_. The
> bounded MPSC changed this behavior so that capacity is only occupied
> while a request is actually in the channel, which broke some tests
> that relied on the old (and technically wrong) behavior.

bear particular attention to this:

> The bounded MPSC changed this behavior so that capacity is only
> occupied while a request is actually in the channel, which broke some
> tests that relied on the old (and technically wrong) behavior.

this is a change in behavior that might affect downstream callers.

this commit adds mention of these changes to the changelog, to help
consumers navigate the upgrade from tower 0.4 to 0.5.

Signed-off-by: katelyn martin <me+cratelyn@katelyn.world>
2025-03-14 16:50:55 -04:00
katelyn martin
6c8d98b470
chore: add Buffer breaking changes to changelog (#818)
in #654, breaking changes were made to the `Buffer` type. this commit
adds mention of these breaking changes to the changelog, so that users
upgrading from 0.4 to 0.5 can have record of what changed, and why.
2025-03-12 18:34:40 -04:00
katelyn martin
fb646693bf
chore: note Budget breaking change in changelog (#817)
`Budget` is now a trait in the 0.5 release. this is a breaking change relative to the 0.4 release, where it was a concrete [struct](https://docs.rs/tower/0.4.13/tower/retry/budget/struct.Budget.html).

this commit updates the changelog to characterize this as a breaking change, rather than an additive change.
2025-03-11 17:04:17 -04:00
katelyn martin
ee149f0170
chore: fix broken links in changelog (#816)
this commit fixes some broken PR links in the changelog, related to the 0.5.2 release.
2025-03-11 16:52:01 -04:00
katelyn martin
aade4e34ff
chore: add breaking changes to changelog (#815)
in #637, breaking changes were made to the `Either<A, B>` service.

this commit adds documentation of these breaking changes to the changelog, so that users upgrading from 0.4 to 0.5 have record of what changed when, and why.
2025-03-11 16:42:38 -04:00
Carlos O'Ryan
954e4c7e8d
docs: bad documentation in ExponentialBackoffMaker (#809) 2024-12-27 11:42:55 +00:00
Jess Izen
34a6951a46
add ServiceBuilder::boxed_clone_sync helper (#804) 2024-12-20 18:34:40 -05:00
Sean McArthur
7dc533ef86 tower v0.5.2 tower-0.5.2 2024-12-11 08:25:54 -05:00
Bhuwan Pandit
a09fd9742d
chore: fix dead code warning for 'Sealed' trait and 'sample_floyd2' func (#799) 2024-12-10 14:47:18 -05:00
Jess Izen
f57e31b0e6
Add util::BoxCloneSyncServiceLayer (#802)
cc #777
2024-12-10 14:31:45 -05:00
tim gretler
da24532017
Add util::BoxCloneSyncService (#777)
Closes #770
2024-12-10 13:38:18 -05:00
Elichai Turkel
6283f3aff1
Upgrade http and sync_wrapper dependencies (#788) 2024-11-19 11:49:39 -05:00
Jonas Platte
71551010ac
Prepare release of v0.5.1 (#791) tower-0.5.1 2024-08-21 19:36:33 -04:00
Arnaud Gourlay
b2c48b46a3
Bump dependency on tower-layer (#787) 2024-08-15 14:03:34 +00:00
Toby Lawrence
fec9e559e2
tower-layer: drop versions from dev dependencies (#782) tower-layer-0.3.3 tower-0.5.0 2024-08-13 12:48:56 -04:00
David Barsky
646804d77e
chore: prepare to release tower-0.5.0, tower-layer-0.3.3, tower-service-0.3.3, and tower-test-0.4.1 (#781) tower-service-0.3.3 2024-08-02 15:21:30 -04:00
Dirk Stolle
7202cfeecd
chore: fix a few typos (#780) 2024-07-23 19:54:14 -04:00
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
Glen De Cauwsemaecker
88a7d3e01e
fix warnings found when running check/doc commands (#779)
Co-authored-by: Toby Lawrence <tobz@users.noreply.github.com>
2024-07-23 10:55:12 -04:00
Dirk Stolle
a6e98a7d69
chore: update GitHub Actions CI (#740) 2024-07-23 09:37:48 -04:00
Toby Lawrence
74e925d2c8
chore: fix spelling errors (#775)
Co-authored-by: Dirk Stolle <striezel-dev@web.de>
2024-07-21 12:36:46 -04:00
Daniél Kerkmann
89ac74f320
feat: Make new functions const when possible (#760)
* feat: Make new functions const when possible

The main reason was to allow to initialize the RateLimitLayer in a const context.
So why not making ever new function const (wherever it's possible). :P

* Change the assert to use an MSRV-compatible function.

---------

Co-authored-by: Toby Lawrence <tobz@users.noreply.github.com>
2024-07-20 13:18:29 -04:00
Glen De Cauwsemaecker
032d17f689
ensure that re-exported symbols show feature label in root (#754)
Co-authored-by: Toby Lawrence <tobz@users.noreply.github.com>
2024-07-20 13:11:02 -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
Glen De Cauwsemaecker
7d723eb2fa
remove generic parameters from Reconnect::new (#755)
these were not used, as the only parameters used
come from the impl block (directly and indirectly)

Co-authored-by: Toby Lawrence <tobz@users.noreply.github.com>
2024-07-20 12:42:34 -04:00
tottoto
f286933bec
chore: Remove unmatched deny ignore config (#733)
Co-authored-by: Toby Lawrence <tobz@users.noreply.github.com>
2024-07-20 12:31:24 -04:00
mxsm
08917603c1
docs: Fix some spelling mistakes (#747) 2024-07-19 16:27:07 -04:00
Eric Crosson
39adf5c509
docs: fix grammar (#749)
This commit uses the correct form of "it's".

"Its" is possessive describes a noun, while "it's" is a contraction that
is short for "it is". Since "ready" is not a noun, we must use the
contraction in this case.

In addition, this commit adds some missing commas.

Co-authored-by: Eliza Weisman <eliza@buoyant.io>
2023-11-06 21:27:25 +00:00
0x5459
a4c20a388b chore: remove useless code 2023-11-06 16:12:37 -05:00
a-kenji
bf4ea94834
docs: Fix duplicate words in README (#734) 2023-05-16 19:34:51 +00:00
Misha Zharov
be1a4faf66
Check if must_use will fix the issue (#728) 2023-04-28 11:38:59 +02:00
qthree
0c3ae8856e
Derive Clone for AsyncFilterLayer (#731) 2023-04-21 15:25:52 +02:00
Misha Zharov
0604f20c48
Bump version numbers (#729) 2023-04-11 18:55:52 +02:00
Adrien Guillo
d2f1703c48
Derive Clone for RetryLayer (#726) 2023-03-24 21:59:48 +00:00
Spencer Bartholomew
664cb35abb
Fix axum readme link (#721) 2023-02-26 18:37:05 +01:00
Spencer Bartholomew
64182d8243
Recommend Axum instead of Warp (#720) 2023-02-26 15:46:02 +01:00
Jeffrey Hutchins
74881d5311
Copy editing building-a-middleware-from-scratch.md (#718) 2023-01-31 19:42:19 +01:00
Conrad Ludgate
b01bb12ddd
rng: use a simpler random 2-sampler (#716) 2023-01-10 12:11:30 -05:00
Frederik Haaning
6f3050614f
timeout: fix typo in docs (#711) 2022-12-01 11:06:11 -05:00
David Pedersen
c34182d0b3
util: make BoxService impl Sync via SyncWrapper (#702)
* util: make `BoxService` impl `Sync` via `SyncWrapper`

* changelog

* format
2022-11-27 10:09:18 +00:00
JJ Ferman
387d2844b7
Updating generic to be consistent (#710) 2022-11-09 08:02:13 +01:00
Alex Rudy
787f5dd81b
util: Adds a BoxCloneServiceLayer (#708)
This layer is similar to a BoxLayer, but produces a BoxCloneService instead, so can be used when
the underlying layers must be clone.

Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
2022-11-04 11:06:23 -04:00
Leonardo Yvens
c9d84cde0c
util: Two call_all bug fixes (#709)
One is handling poll_ready errors (#706).

The other is fixing the TODO about disarming poll_ready, since there is no disarm this makes sure
`poll_ready` is only called if `call` will immediately follow.
2022-11-01 15:28:09 -04:00
boraarslan
d27ba65891
retry: Add Budget trait (#703) 2022-10-24 18:28:22 +00:00
Heiko Seeberger
582a0e0c74
util: improve ServiceExt::oneshot docs (#704) 2022-10-24 16:02:51 +00:00