Commit Graph

376 Commits

Author SHA1 Message Date
Lucio Franco b6c67182cb
make: Prepare 0.3 release and update docs (#370)
* make: Prepare 0.3 release and update docs

* rebase against origin/master + get doc tests to compile

* fmt

* fix build
2019-11-29 15:44:03 -05:00
Lucio Franco c3c6780d31
service: Update docs and prepare for 0.3 release (#369)
* service: Update docs and prepare for 0.3 release

* Update rustmft

* Disable main tower crate
2019-11-29 11:48: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 bb5c02ca58
Disable all crates execpt tower-service 2019-11-29 09:23:54 -05:00
Lucio Franco a62fe875c4
Disable tower-balance from ci 2019-11-29 09:15:10 -05:00
David Barsky a4c02f5d9c Revert "get building"
186a0fb4a3
2019-11-28 15:21:27 -05:00
David Barsky 186a0fb4a3 get building 2019-11-28 15:15:41 -05:00
Lucio Franco 51a374c564 Fix up last few merge issues 2019-11-26 10:32:49 -05:00
Lucio Franco 87ad2e1cc8 Merge remote-tracking branch 'origin/master' into v0.3.x 2019-11-26 10:32:02 -05:00
Oliver Gould 7e55b7fa0b
Introduce tower-ready-cache (#303)
In #293, `balance` was refactored to manage dispatching requests over a
set of equivalent inner services that may or may not be ready.

This change extracts the core logic of managing a cache of ready
services into a dedicated crate, leaving the balance crate to deal with
node selection.
2019-11-12 09:44:16 -08:00
Oliver Gould 2d24d84e7c
Cleanup unused dependencies (#364)
I've run `cargo udeps` to discover some unused/misplaced dependencies.
2019-11-11 09:52:33 -08:00
Oliver Gould 4a4593d522
balance: Update rand to 0.7 (#363) 2019-11-09 14:30:44 -08:00
Pen Tree 52dbdda23d Expect the poll_acquire error, not return (#362)
* Expect the poll_acquire error, not return

* Remove Error in tower-limit
2019-10-31 14:06:04 -04:00
Pen Tree fac5c361a4 Fix tower-service docs (#361) 2019-10-18 17:18:55 -04:00
Lucio Franco e414b2b7d3
Prepare buffer 0.1.2 release (#360) 2019-10-11 11:39:34 -04:00
Lucio Franco 30f11bfaa2
Prepare limit 0.1.1 release (#359) 2019-10-11 11:22:14 -04:00
Lucio Franco abe5b78542
Remove tokio alpha.6 patches (#357)
* Remove tokio alpha.6 patches

* Remove ci patch
2019-09-30 21:15:26 -04:00
Lucio Franco 3bff86e28e
make: Add alpha.2a changelog 2019-09-30 20:53:39 -04:00
Lucio Franco 7fa1054892
make: Bump version to alpha.2a (#356) 2019-09-30 20:40:28 -04:00
Jon Gjengset 2653f70884 Bumps for 0.3.0-alpha.2 (#355)
* Bump all to futures-* alpha.19

* Prepare for alpha.2 release

* Make tower-service also a path dep

* Use new tokio alpha
2019-09-30 18:56:26 -04:00
Taiki Endo 03dc7069aa Update pin-project to 0.4 (#350) 2019-09-30 14:58:27 -04:00
Jon Gjengset d5b36b54a5
Re-enable all CI (#353)
CI has to run on nightly for the time being.

Also includes changes to make buffer tests more reliable.
2019-09-24 18:56:37 -04:00
Jon Gjengset 6baf381879
Consistently apply deny/warn rules (#352)
This makes all tower subcrates have the following lints as warn (rather
than allow): `missing_docs`, `rust_2018_idioms`, `unreachable_pub`, and
`missing_debug_implementations`. In addition, it consistently applies
`deny(warning)` *only* under CI so that deprecations and macro changes in minor
version bumps in dependencies will never cause `tower` crates to stop
compiling, and so that tests can be run even if not all warnings have been
dealt with. See also https://github.com/rust-unofficial/patterns/blob/master/anti_patterns/deny-warnings.md

Note that `tower-reconnect` has the `missing_docs` lint disabled for now
since it contained _no_ documentation previously. Also note that this
patch does not add documentation to the various `new` methods, as they
are considered self-explanatory. They are instead marked as
`#[allow(missing_docs)]`.
2019-09-23 17:28:14 -04:00
Taiki Endo 5a561b7776 layer: remove unused dependencies (#351) 2019-09-23 09:54:08 -04:00
Sean McArthur 55b5150a89 tower-make:v0.3.0-alpha.2 2019-09-20 15:09:09 -07:00
Sean McArthur 52075f3c6f Update tower-make to tokio-io v0.2.0-alpha.5 2019-09-20 15:09:09 -07:00
Luke Steensen b86d7fb6e4 limit: Add trace log when rate limit is exceeded (#348) 2019-09-17 17:19:23 -04:00
Luke Steensen 8509ab879d Fix up broken dependencies and deprecated methods (#347)
* fix up broken dependencies and deprecated methods

* use released version of tracing-subscriber

Co-Authored-By: Lucio Franco <luciofranco14@gmail.com>
2019-09-17 15:29:11 -04:00
Mackenzie Clark f4a81d2c7d fix tower-service helloworld docs example to use new futures (#346) 2019-09-15 14:09:58 -05:00
Lucio Franco ca951d56f4
Prepare `tower-buffer` 0.3.0-alpha.1b release (#345)
* buffer: Fix unused Stream warning

* Prepare `tower-buffer` 0.3.0-alpha.1b release

* Update buffer version in balance
2019-09-14 12:47:38 -04:00
Lucio Franco 206f3d9941
Prepare `tower-buffer` 0.3.0-alpha.1a release (#343)
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
2019-09-13 16:36:35 -04:00
Lucio Franco 167f791a9f
Add `v0.3.x` branch to run CI (#344)
Signed-off-by: Lucio Franco <luciofranco14@gmail.com>
2019-09-13 15:38:23 -04:00
Mackenzie Clark e8cef688a0 change poll_next to poll_recv (#342) 2019-09-13 15:18:13 -04:00
Lucio Franco 42376d484b
tower: Add date to changelog 2019-09-11 16:45:19 -04:00
Lucio Franco fc211c3b7c
load-shed: Add date to changelog 2019-09-11 16:36:11 -04:00
Lucio Franco 7bb3a646a7
spawn-ready: Add date to changelog 2019-09-11 16:33:43 -04:00
Lucio Franco 2f6c0afde3
buffer: Add date to changelog 2019-09-11 16:31:30 -04:00
Lucio Franco 67a9e27177
balance: Fix tokio-sync channel poll fn 2019-09-11 16:27:02 -04:00
Lucio Franco bd62f64d6c
balance: Add changelog entry and remove publish false 2019-09-11 16:21:34 -04:00
Lucio Franco 48f97c3dce
load: Remove publish false and add date to changelog 2019-09-11 16:19:53 -04:00
Lucio Franco 768528e737
discover: Add date to changelog 2019-09-11 16:16:07 -04:00
Lucio Franco c40185901e
limit: Add date to changelog 2019-09-11 16:09:29 -04:00
Lucio Franco 589eb44377
util: Add date to changelog 2019-09-11 16:02:34 -04:00
Lucio Franco a3c16e85f9
make: Add changelog date 2019-09-11 15:59:30 -04:00
Lucio Franco a8def9349f
reconnect: Remove publish false 2019-09-11 15:58:43 -04:00
Lucio Franco 90ef2a64b4
reconnect: Add date to changelog 2019-09-11 15:57:55 -04:00
Lucio Franco 04fd0c5898
Merge branch 'v0.3.x' of github.com:tower-rs/tower into v0.3.x 2019-09-11 15:57:32 -04:00
Jon Gjengset 395889c763
Make Ready only take Service by reference (#340)
Rather than consuming `self` and returning `(Self, _)`. This did mean
that a few crates that depended on `Ready` to own the `Service` and
provide it once it was ready had to change to call `poll_ready`
directly. Which in turn meant adding in some PhantomData<Request> so
that the impl blocks wouldn't be under-constrainted. Take, for example:

```
impl<K, S: Service<Req>, Req> Future for UnreadyService<K, S>
```

would fail to compile with

```
error[E0207]: the type parameter `Req` is not constrained by the impl trait, self type, or predicates
```
2019-09-11 15:49:51 -04:00
Lucio Franco 6c68c56dc4
retry: Update changelog with date 2019-09-11 15:12:33 -04:00
Lucio Franco 9b8db5b393
test: Add changelog entry and date 2019-09-11 15:08:20 -04:00