Skip to content

Commit

Permalink
Merge pull request #432 from tower-rs/2020-spring-clean
Browse files Browse the repository at this point in the history
2020: merge all the middleware
  • Loading branch information
jonhoo authored Mar 31, 2020
2 parents 0f9eb64 + 9dd2314 commit 81cfbab
Show file tree
Hide file tree
Showing 179 changed files with 349 additions and 1,656 deletions.
62 changes: 45 additions & 17 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,24 +46,9 @@ jobs:
matrix:
crate:
- tower
- tower-balance
- tower-buffer
- tower-discover
- tower-filter
- tower-hedge
- tower-layer
- tower-limit
- tower-load
- tower-load-shed
- tower-make
- tower-ready-cache
- tower-reconnect
- tower-retry
- tower-service
- tower-spawn-ready
- tower-test
- tower-timeout
- tower-util

steps:
- name: Checkout code
Expand Down Expand Up @@ -94,10 +79,53 @@ jobs:
uses: actions-rs/cargo@v1
env:
CI: 'True'
RUSTFLAGS: '-D warnings'
# RUSTFLAGS: '-D warnings'
with:
command: test
args: -p ${{ matrix.crate }} --verbose
args: -p ${{ matrix.crate }} --verbose --all-features

features:

runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v1
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
- name: Patch
run: |
set -e
# Remove any existing patch statements
mv Cargo.toml Cargo.toml.bck
sed -n '/\[patch.crates-io\]/q;p' Cargo.toml.bck > Cargo.toml
# Patch all crates
cat .github/workflows/patch.toml >> Cargo.toml
# Print `Cargo.toml` for debugging
echo "~~~~ Cargo.toml ~~~~"
cat Cargo.toml
echo "~~~~~~~~~~~~~~~~~~~~"
- name: Install cargo-hack
uses: actions-rs/cargo@v1
with:
command: install
args: cargo-hack
- name: Run feature checks
uses: actions-rs/cargo@v1
env:
CI: 'True'
with:
command: hack
# Check each feature works properly
# * --each-feature
# run for each feature which includes --no-default-features and default features of package
# * -Z avoid-dev-deps
# build without dev-dependencies to avoid https://github.com/rust-lang/cargo/issues/4866
# tracking-issue: https://github.com/rust-lang/cargo/issues/5133
args: check -p tower --each-feature -Z avoid-dev-deps

rustfmt:

Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/patch.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,6 @@
# repository.
[patch.crates-io]
tower = { path = "tower" }
tower-balance = { path = "tower-balance" }
tower-buffer = { path = "tower-buffer" }
tower-discover = { path = "tower-discover" }
tower-filter = { path = "tower-filter" }
tower-layer = { path = "tower-layer" }
tower-limit = { path = "tower-limit" }
tower-load-shed = { path = "tower-load-shed" }
tower-reconnect = { path = "tower-reconnect" }
tower-retry = { path = "tower-retry" }
tower-service = { path = "tower-service" }
tower-spawn-ready = { path = "tower-spawn-ready" }
tower-test = { path = "tower-test" }
tower-timeout = { path = "tower-timeout" }
tower-util = { path = "tower-util" }
15 changes: 0 additions & 15 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,7 @@

members = [
"tower",
"tower-balance",
"tower-buffer",
"tower-discover",
"tower-filter",
"tower-hedge",
"tower-layer",
"tower-limit",
"tower-load",
"tower-load-shed",
"tower-ready-cache",
"tower-reconnect",
"tower-retry",
"tower-service",
"tower-spawn-ready",
"tower-test",
"tower-timeout",
"tower-make",
"tower-util",
]
18 changes: 0 additions & 18 deletions tower-balance/CHANGELOG.md

This file was deleted.

53 changes: 0 additions & 53 deletions tower-balance/Cargo.toml

This file was deleted.

25 changes: 0 additions & 25 deletions tower-balance/LICENSE

This file was deleted.

13 changes: 0 additions & 13 deletions tower-balance/README.md

This file was deleted.

14 changes: 0 additions & 14 deletions tower-balance/src/lib.rs

This file was deleted.

31 changes: 0 additions & 31 deletions tower-buffer/CHANGELOG.md

This file was deleted.

39 changes: 0 additions & 39 deletions tower-buffer/Cargo.toml

This file was deleted.

25 changes: 0 additions & 25 deletions tower-buffer/LICENSE

This file was deleted.

13 changes: 0 additions & 13 deletions tower-buffer/README.md

This file was deleted.

17 changes: 0 additions & 17 deletions tower-discover/CHANGELOG.md

This file was deleted.

Loading

0 comments on commit 81cfbab

Please sign in to comment.