From 14f425951801ee24482f59a55d39498999c5a004 Mon Sep 17 00:00:00 2001 From: Carl Lerche Date: Fri, 26 Apr 2019 21:31:25 -0700 Subject: [PATCH] Prepare release (#273) The following crates are to be released: - tower - tower-buffer - tower-discover - tower-layer - tower-limit - tower-load-shed - tower-retry - tower-service - tower-test - tower-timeout - tower-util --- Cargo.toml | 3 --- ci/azure-is-release.yml | 9 +++++++++ ci/azure-patch-crates.yml | 17 +++++++++++++++++ ci/azure-test-stable.yml | 14 ++++++++++++++ ci/patch.toml | 17 +++++++++++++++++ tower-balance/CHANGELOG.md | 3 +++ tower-balance/Cargo.toml | 22 +++++++++++++++------- tower-balance/LICENSE | 25 +++++++++++++++++++++++++ tower-balance/README.md | 14 ++++++++++++-- tower-balance/src/lib.rs | 1 + tower-buffer/CHANGELOG.md | 3 +++ tower-buffer/Cargo.toml | 17 ++++++++++++----- tower-buffer/LICENSE | 25 +++++++++++++++++++++++++ tower-buffer/README.md | 12 +++++++++++- tower-buffer/src/lib.rs | 1 + tower-discover/CHANGELOG.md | 3 +++ tower-discover/Cargo.toml | 13 ++++++++++--- tower-discover/LICENSE | 25 +++++++++++++++++++++++++ tower-discover/README.md | 12 +++++++++++- tower-discover/src/lib.rs | 1 + tower-filter/CHANGELOG.md | 3 +++ tower-filter/Cargo.toml | 16 ++++++++++++---- tower-filter/LICENSE | 25 +++++++++++++++++++++++++ tower-filter/README.md | 16 +++++++++++++--- tower-filter/src/lib.rs | 1 + tower-layer/CHANGELOG.md | 3 +++ tower-layer/Cargo.toml | 14 +++++++++----- tower-layer/src/lib.rs | 2 +- tower-limit/CHANGELOG.md | 3 +++ tower-limit/Cargo.toml | 17 ++++++++++++----- tower-limit/LICENSE | 25 +++++++++++++++++++++++++ tower-limit/README.md | 15 ++++++++++++--- tower-limit/src/lib.rs | 5 ++--- tower-load-shed/CHANGELOG.md | 3 +++ tower-load-shed/Cargo.toml | 15 +++++++++++---- tower-load-shed/LICENSE | 25 +++++++++++++++++++++++++ tower-load-shed/README.md | 16 +++++++++++++--- tower-load-shed/src/lib.rs | 5 ++--- tower-reconnect/CHANGELOG.md | 3 +++ tower-reconnect/Cargo.toml | 16 ++++++++++++---- tower-reconnect/LICENSE | 25 +++++++++++++++++++++++++ tower-reconnect/README.md | 15 ++++++++++++--- tower-reconnect/src/lib.rs | 1 + tower-retry/CHANGELOG.md | 3 +++ tower-retry/Cargo.toml | 17 ++++++++++++----- tower-retry/LICENSE | 25 +++++++++++++++++++++++++ tower-retry/README.md | 13 +++++++++++-- tower-retry/src/lib.rs | 7 +++---- tower-service/Cargo.toml | 9 ++++++--- tower-service/LICENSE | 2 +- tower-test/CHANGELOG.md | 3 +++ tower-test/Cargo.toml | 13 ++++++++++--- tower-test/LICENSE | 25 +++++++++++++++++++++++++ tower-test/README.md | 12 +++++++++++- tower-test/src/lib.rs | 1 + tower-timeout/CHANGELOG.md | 3 +++ tower-timeout/Cargo.toml | 15 +++++++++++---- tower-timeout/LICENSE | 25 +++++++++++++++++++++++++ tower-timeout/README.md | 14 ++++++++++++-- tower-timeout/src/lib.rs | 10 +++++----- tower-util/CHANGELOG.md | 3 +++ tower-util/Cargo.toml | 13 ++++++++----- tower-util/README.md | 2 +- tower-util/src/lib.rs | 4 +++- tower/CHANGELOG.md | 3 +++ tower/Cargo.toml | 35 +++++++++++++++++++++-------------- tower/LICENSE | 25 +++++++++++++++++++++++++ tower/README.md | 10 ++++++++++ tower/src/lib.rs | 1 + 69 files changed, 685 insertions(+), 114 deletions(-) create mode 100644 ci/azure-is-release.yml create mode 100644 ci/azure-patch-crates.yml create mode 100644 ci/patch.toml create mode 100644 tower-balance/CHANGELOG.md create mode 100644 tower-balance/LICENSE create mode 100644 tower-buffer/CHANGELOG.md create mode 100644 tower-buffer/LICENSE create mode 100644 tower-discover/CHANGELOG.md create mode 100644 tower-discover/LICENSE create mode 100644 tower-filter/CHANGELOG.md create mode 100644 tower-filter/LICENSE create mode 100644 tower-layer/CHANGELOG.md create mode 100644 tower-limit/CHANGELOG.md create mode 100644 tower-limit/LICENSE create mode 100644 tower-load-shed/CHANGELOG.md create mode 100644 tower-load-shed/LICENSE create mode 100644 tower-reconnect/CHANGELOG.md create mode 100644 tower-reconnect/LICENSE create mode 100644 tower-retry/CHANGELOG.md create mode 100644 tower-retry/LICENSE create mode 100644 tower-test/CHANGELOG.md create mode 100644 tower-test/LICENSE create mode 100644 tower-timeout/CHANGELOG.md create mode 100644 tower-timeout/LICENSE create mode 100644 tower-util/CHANGELOG.md create mode 100644 tower/CHANGELOG.md create mode 100644 tower/LICENSE diff --git a/Cargo.toml b/Cargo.toml index 050095b1..af7095eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,3 @@ members = [ "tower-timeout", "tower-util", ] - -[patch.'https://github.com/tower-rs/tower'] -tower-retry = { path = "tower-retry" } diff --git a/ci/azure-is-release.yml b/ci/azure-is-release.yml new file mode 100644 index 00000000..014b7a98 --- /dev/null +++ b/ci/azure-is-release.yml @@ -0,0 +1,9 @@ +steps: + - bash: | + set -e + + if git log --no-merges -1 --format='%s' | grep -q '[ci-release]'; then + echo "##vso[task.setvariable variable=isRelease]true" + fi + failOnStderr: true + displayName: Check if release commit diff --git a/ci/azure-patch-crates.yml b/ci/azure-patch-crates.yml new file mode 100644 index 00000000..a61c6974 --- /dev/null +++ b/ci/azure-patch-crates.yml @@ -0,0 +1,17 @@ +steps: + - script: | + 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 ci/patch.toml >> Cargo.toml + + # Print `Cargo.toml` for debugging + echo "~~~~ Cargo.toml ~~~~" + cat Cargo.toml + echo "~~~~~~~~~~~~~~~~~~~~" + displayName: Patch Cargo.toml + diff --git a/ci/azure-test-stable.yml b/ci/azure-test-stable.yml index b3a240c0..68b5fa00 100644 --- a/ci/azure-test-stable.yml +++ b/ci/azure-test-stable.yml @@ -11,7 +11,21 @@ jobs: parameters: rust_version: stable + - template: azure-is-release.yml + - ${{ each crate in parameters.crates }}: - script: cargo test + env: + CI: 'True' + displayName: cargo test -p ${{ crate }} + workingDirectory: $(Build.SourcesDirectory)/${{ crate }} + condition: and(succeeded(), not(variables['isRelease'])) + + - template: azure-patch-crates.yml + + - ${{ each crate in parameters.crates }}: + - script: cargo test + env: + CI: 'True' displayName: cargo test -p ${{ crate }} workingDirectory: $(Build.SourcesDirectory)/${{ crate }} diff --git a/ci/patch.toml b/ci/patch.toml new file mode 100644 index 00000000..2423c63b --- /dev/null +++ b/ci/patch.toml @@ -0,0 +1,17 @@ +# Patch dependencies to run all tests against versions of the crate in the +# 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-test = { path = "tower-test" } +tower-timeout = { path = "tower-timeout" } +tower-util = { path = "tower-util" } diff --git a/tower-balance/CHANGELOG.md b/tower-balance/CHANGELOG.md new file mode 100644 index 00000000..cae251b9 --- /dev/null +++ b/tower-balance/CHANGELOG.md @@ -0,0 +1,3 @@ +# 0.1.0 (unreleased) + +- Initial release diff --git a/tower-balance/Cargo.toml b/tower-balance/Cargo.toml index a1bbf4c3..a3854dc2 100644 --- a/tower-balance/Cargo.toml +++ b/tower-balance/Cargo.toml @@ -1,20 +1,28 @@ [package] name = "tower-balance" +# When releasing to crates.io: +# - Remove path dependencies +# - Update html_root_url. +# - Update doc url +# - Cargo.toml +# - README.md +# - Update CHANGELOG.md. +# - Create "v0.1.x" git tag. version = "0.1.0" -authors = ["Carl Lerche "] +authors = ["Tower Maintainers "] license = "MIT" -publish = false edition = "2018" +publish = false [dependencies] -futures = "0.1" +futures = "0.1.26" +indexmap = "1.0.2" log = "0.4.1" -rand = "0.6" +rand = "0.6.5" tokio-timer = "0.2.4" tower-service = "0.2.0" -tower-discover = { version = "0.1", path = "../tower-discover" } -tower-util = { version = "0.1", path = "../tower-util" } -indexmap = "1" +tower-discover = "0.1.0" +tower-util = "0.1.0" [dev-dependencies] log = "0.4.1" diff --git a/tower-balance/LICENSE b/tower-balance/LICENSE new file mode 100644 index 00000000..b980cacc --- /dev/null +++ b/tower-balance/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2019 Tower Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/tower-balance/README.md b/tower-balance/README.md index 521e7091..1ceb355e 100644 --- a/tower-balance/README.md +++ b/tower-balance/README.md @@ -1,3 +1,13 @@ -Tower Balance +# Tower Balance -A Tower middleware that load balances across a uniform set of services. +Balance load across a set of uniform services. + +## License + +This project is licensed under the [MIT license](LICENSE). + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally submitted +for inclusion in Tower by you, shall be licensed as MIT, without any additional +terms or conditions. diff --git a/tower-balance/src/lib.rs b/tower-balance/src/lib.rs index 86b99604..fa6f9fcc 100644 --- a/tower-balance/src/lib.rs +++ b/tower-balance/src/lib.rs @@ -1,3 +1,4 @@ +#![doc(html_root_url = "https://docs.rs/tower-balance/0.1.0")] #![deny(rust_2018_idioms)] #![allow(elided_lifetimes_in_paths)] #[cfg(test)] diff --git a/tower-buffer/CHANGELOG.md b/tower-buffer/CHANGELOG.md new file mode 100644 index 00000000..24a6a34e --- /dev/null +++ b/tower-buffer/CHANGELOG.md @@ -0,0 +1,3 @@ +# 0.1.0 (April 26, 2019) + +- Initial release diff --git a/tower-buffer/Cargo.toml b/tower-buffer/Cargo.toml index 3556c671..593ea25b 100644 --- a/tower-buffer/Cargo.toml +++ b/tower-buffer/Cargo.toml @@ -1,18 +1,25 @@ [package] name = "tower-buffer" +# When releasing to crates.io: +# - Remove path dependencies +# - Update html_root_url. +# - Update doc url +# - Cargo.toml +# - README.md +# - Update CHANGELOG.md. +# - Create "v0.1.x" git tag. version = "0.1.0" -authors = ["Carl Lerche "] +authors = ["Tower Maintainers "] license = "MIT" -publish = false edition = "2018" [dependencies] futures = "0.1.25" tower-service = "0.2.0" -tower-layer = { version = "0.1", path = "../tower-layer" } +tower-layer = "0.1.0" tokio-executor = "0.1.7" tokio-sync = "0.1.0" [dev-dependencies] -tower = { version = "0.1", path = "../tower" } -tower-test = { version = "0.1", path = "../tower-test" } +tower = { version = "0.1.0", path = "../tower" } +tower-test = { version = "0.1.0", path = "../tower-test" } diff --git a/tower-buffer/LICENSE b/tower-buffer/LICENSE new file mode 100644 index 00000000..b980cacc --- /dev/null +++ b/tower-buffer/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2019 Tower Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/tower-buffer/README.md b/tower-buffer/README.md index c0600138..3b3bfbde 100644 --- a/tower-buffer/README.md +++ b/tower-buffer/README.md @@ -1,3 +1,13 @@ # Tower Buffer -Tower middleware providing a buffering layer in front of an inner `Service`. +Buffer requests before dispatching to a `Service`. + +## License + +This project is licensed under the [MIT license](LICENSE). + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally submitted +for inclusion in Tower by you, shall be licensed as MIT, without any additional +terms or conditions. diff --git a/tower-buffer/src/lib.rs b/tower-buffer/src/lib.rs index 214f2a8f..9752a9b7 100644 --- a/tower-buffer/src/lib.rs +++ b/tower-buffer/src/lib.rs @@ -1,3 +1,4 @@ +#![doc(html_root_url = "https://docs.rs/tower-buffer/0.1.0")] #![deny(rust_2018_idioms)] #![allow(elided_lifetimes_in_paths)] diff --git a/tower-discover/CHANGELOG.md b/tower-discover/CHANGELOG.md new file mode 100644 index 00000000..24a6a34e --- /dev/null +++ b/tower-discover/CHANGELOG.md @@ -0,0 +1,3 @@ +# 0.1.0 (April 26, 2019) + +- Initial release diff --git a/tower-discover/Cargo.toml b/tower-discover/Cargo.toml index fb1b9480..2450b63b 100644 --- a/tower-discover/Cargo.toml +++ b/tower-discover/Cargo.toml @@ -1,11 +1,18 @@ [package] name = "tower-discover" +# When releasing to crates.io: +# - Remove path dependencies +# - Update html_root_url. +# - Update doc url +# - Cargo.toml +# - README.md +# - Update CHANGELOG.md. +# - Create "v0.1.x" git tag. version = "0.1.0" -authors = ["Carl Lerche "] +authors = ["Tower Maintainers "] license = "MIT" -publish = false edition = "2018" [dependencies] -futures = "0.1" +futures = "0.1.26" tower-service = "0.2.0" diff --git a/tower-discover/LICENSE b/tower-discover/LICENSE new file mode 100644 index 00000000..b980cacc --- /dev/null +++ b/tower-discover/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2019 Tower Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/tower-discover/README.md b/tower-discover/README.md index 000719ff..0b0e7fdf 100644 --- a/tower-discover/README.md +++ b/tower-discover/README.md @@ -1,3 +1,13 @@ -Tower Discovery +# Tower Discovery Abstracts over service discovery strategies. + +## License + +This project is licensed under the [MIT license](LICENSE). + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally submitted +for inclusion in Tower by you, shall be licensed as MIT, without any additional +terms or conditions. diff --git a/tower-discover/src/lib.rs b/tower-discover/src/lib.rs index 2fe5c3eb..5bbd4957 100644 --- a/tower-discover/src/lib.rs +++ b/tower-discover/src/lib.rs @@ -1,3 +1,4 @@ +#![doc(html_root_url = "https://docs.rs/tower-discover/0.1.0")] #![deny(rust_2018_idioms)] #![allow(elided_lifetimes_in_paths)] diff --git a/tower-filter/CHANGELOG.md b/tower-filter/CHANGELOG.md new file mode 100644 index 00000000..cae251b9 --- /dev/null +++ b/tower-filter/CHANGELOG.md @@ -0,0 +1,3 @@ +# 0.1.0 (unreleased) + +- Initial release diff --git a/tower-filter/Cargo.toml b/tower-filter/Cargo.toml index bb5a5401..c8d8e39c 100644 --- a/tower-filter/Cargo.toml +++ b/tower-filter/Cargo.toml @@ -1,15 +1,23 @@ [package] name = "tower-filter" +# When releasing to crates.io: +# - Remove path dependencies +# - Update html_root_url. +# - Update doc url +# - Cargo.toml +# - README.md +# - Update CHANGELOG.md. +# - Create "v0.1.x" git tag. version = "0.1.0" -authors = ["Carl Lerche "] +authors = ["Tower Maintainers "] license = "MIT" -publish = false edition = "2018" +publish = false [dependencies] -futures = "0.1" +futures = "0.1.26" tower-service = "0.2.0" -tower-layer = { version = "0.1", path = "../tower-layer" } +tower-layer = "0.1.0" [dev-dependencies] tower-test = { version = "0.1", path = "../tower-test" } diff --git a/tower-filter/LICENSE b/tower-filter/LICENSE new file mode 100644 index 00000000..b980cacc --- /dev/null +++ b/tower-filter/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2019 Tower Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/tower-filter/README.md b/tower-filter/README.md index dc17a5b5..c862a192 100644 --- a/tower-filter/README.md +++ b/tower-filter/README.md @@ -1,4 +1,14 @@ -Tower Filter +# Tower Filter -A Tower middleware that conditionally allows requests to be dispatched to the -inner service based on the result of a predicate. +Conditionally allow requests to be dispatched to a service based on the result +of a predicate. + +## License + +This project is licensed under the [MIT license](LICENSE). + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally submitted +for inclusion in Tower by you, shall be licensed as MIT, without any additional +terms or conditions. diff --git a/tower-filter/src/lib.rs b/tower-filter/src/lib.rs index a21ca6ca..84ce453c 100644 --- a/tower-filter/src/lib.rs +++ b/tower-filter/src/lib.rs @@ -1,3 +1,4 @@ +#![doc(html_root_url = "https://docs.rs/tower-filter/0.1.0")] #![deny(rust_2018_idioms)] #![allow(elided_lifetimes_in_paths)] diff --git a/tower-layer/CHANGELOG.md b/tower-layer/CHANGELOG.md new file mode 100644 index 00000000..24a6a34e --- /dev/null +++ b/tower-layer/CHANGELOG.md @@ -0,0 +1,3 @@ +# 0.1.0 (April 26, 2019) + +- Initial release diff --git a/tower-layer/Cargo.toml b/tower-layer/Cargo.toml index ae98e111..d761c479 100644 --- a/tower-layer/Cargo.toml +++ b/tower-layer/Cargo.toml @@ -1,11 +1,15 @@ [package] name = "tower-layer" # When releasing to crates.io: +# - Remove path dependencies # - Update html_root_url. -# - Update documentation URL -# - Create "v0.x.y" git tag. +# - Update doc url +# - Cargo.toml +# - README.md +# - Update CHANGELOG.md. +# - Create "v0.1.x" git tag. version = "0.1.0" -authors = ["Carl Lerche "] +authors = ["Tower Maintainers "] license = "MIT" readme = "README.md" repository = "https://github.com/tower-rs/tower" @@ -18,8 +22,8 @@ categories = ["asynchronous", "network-programming"] edition = "2018" [dependencies] -futures = "0.1" +futures = "0.1.26" tower-service = "0.2.0" [dev-dependencies] -void = "1" +void = "1.0.2" diff --git a/tower-layer/src/lib.rs b/tower-layer/src/lib.rs index dd436137..5e8dd0ae 100644 --- a/tower-layer/src/lib.rs +++ b/tower-layer/src/lib.rs @@ -1,5 +1,5 @@ -#![deny(missing_docs, rust_2018_idioms)] #![doc(html_root_url = "https://docs.rs/tower-layer/0.1.0")] +#![deny(missing_docs, rust_2018_idioms)] //! Layer traits and extensions. //! diff --git a/tower-limit/CHANGELOG.md b/tower-limit/CHANGELOG.md new file mode 100644 index 00000000..24a6a34e --- /dev/null +++ b/tower-limit/CHANGELOG.md @@ -0,0 +1,3 @@ +# 0.1.0 (April 26, 2019) + +- Initial release diff --git a/tower-limit/Cargo.toml b/tower-limit/Cargo.toml index 88aa0770..61f3967c 100644 --- a/tower-limit/Cargo.toml +++ b/tower-limit/Cargo.toml @@ -1,19 +1,26 @@ [package] name = "tower-limit" +# When releasing to crates.io: +# - Remove path dependencies +# - Update html_root_url. +# - Update doc url +# - Cargo.toml +# - README.md +# - Update CHANGELOG.md. +# - Create "v0.1.x" git tag. version = "0.1.0" -authors = ["Carl Lerche "] +authors = ["Tower Maintainers "] license = "MIT" -publish = false edition = "2018" [dependencies] -futures = "0.1" +futures = "0.1.26" tower-service = "0.2.0" -tower-layer = { version = "0.1", path = "../tower-layer"} +tower-layer = "0.1.0" tokio-sync = "0.1.3" tokio-timer = "0.2.6" [dev-dependencies] tower-test = { version = "0.1", path = "../tower-test" } -tokio = "0.1" +tokio = "0.1.19" tokio-mock-task = "0.1.1" diff --git a/tower-limit/LICENSE b/tower-limit/LICENSE new file mode 100644 index 00000000..b980cacc --- /dev/null +++ b/tower-limit/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2019 Tower Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/tower-limit/README.md b/tower-limit/README.md index b4690758..3cb2d633 100644 --- a/tower-limit/README.md +++ b/tower-limit/README.md @@ -1,4 +1,13 @@ -Tower Rate Limit +# Tower Rate Limit -A Tower middleware that rate limits the requests that are passed to the inner -service. +Limit maximum request rate to a `Service`. + +## License + +This project is licensed under the [MIT license](LICENSE). + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally submitted +for inclusion in Tower by you, shall be licensed as MIT, without any additional +terms or conditions. diff --git a/tower-limit/src/lib.rs b/tower-limit/src/lib.rs index 62acf337..97e9fcf1 100644 --- a/tower-limit/src/lib.rs +++ b/tower-limit/src/lib.rs @@ -1,7 +1,6 @@ +#![doc(html_root_url = "https://docs.rs/tower-limit/0.1.0")] #![cfg_attr(test, deny(warnings))] -#![deny(missing_debug_implementations)] -#![deny(missing_docs)] -#![deny(rust_2018_idioms)] +#![deny(missing_debug_implementations, missing_docs, rust_2018_idioms)] #![allow(elided_lifetimes_in_paths)] //! Tower middleware for limiting requests. diff --git a/tower-load-shed/CHANGELOG.md b/tower-load-shed/CHANGELOG.md new file mode 100644 index 00000000..24a6a34e --- /dev/null +++ b/tower-load-shed/CHANGELOG.md @@ -0,0 +1,3 @@ +# 0.1.0 (April 26, 2019) + +- Initial release diff --git a/tower-load-shed/Cargo.toml b/tower-load-shed/Cargo.toml index 86215373..b2bac968 100644 --- a/tower-load-shed/Cargo.toml +++ b/tower-load-shed/Cargo.toml @@ -1,16 +1,23 @@ [package] name = "tower-load-shed" +# When releasing to crates.io: +# - Remove path dependencies +# - Update html_root_url. +# - Update doc url +# - Cargo.toml +# - README.md +# - Update CHANGELOG.md. +# - Create "v0.1.x" git tag. version = "0.1.0" -authors = ["Sean McArthur "] +authors = ["Tower Maintainers "] license = "MIT" -publish = false edition = "2018" [dependencies] futures = "0.1.25" tower-service = "0.2.0" -tower-layer = { version = "0.1.0", path = "../tower-layer" } +tower-layer = "0.1.0" [dev-dependencies] tokio-mock-task = "0.1.1" -tower-test = { version = "0.1", path = "../tower-test" } +tower-test = { version = "0.1.0", path = "../tower-test" } diff --git a/tower-load-shed/LICENSE b/tower-load-shed/LICENSE new file mode 100644 index 00000000..b980cacc --- /dev/null +++ b/tower-load-shed/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2019 Tower Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/tower-load-shed/README.md b/tower-load-shed/README.md index 87bdf2c8..30440f6d 100644 --- a/tower-load-shed/README.md +++ b/tower-load-shed/README.md @@ -1,4 +1,14 @@ -Tower Load Shed +# Tower Load Shed -A Tower middleware rejects requests immediately if the underlying service is -not ready, known as load-shedding. +Immediately reject requests if the inner service is not ready. This is also +known as load-shedding. + +## License + +This project is licensed under the [MIT license](LICENSE). + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally submitted +for inclusion in Tower by you, shall be licensed as MIT, without any additional +terms or conditions. diff --git a/tower-load-shed/src/lib.rs b/tower-load-shed/src/lib.rs index 4a1e79bc..9f94271d 100644 --- a/tower-load-shed/src/lib.rs +++ b/tower-load-shed/src/lib.rs @@ -1,7 +1,6 @@ +#![doc(html_root_url = "https://docs.rs/tower-load-shed/0.1.0")] #![cfg_attr(test, deny(warnings))] -#![deny(missing_debug_implementations)] -#![deny(missing_docs)] -#![deny(rust_2018_idioms)] +#![deny(missing_debug_implementations, missing_docs, rust_2018_idioms)] #![allow(elided_lifetimes_in_paths)] //! Tower middleware for shedding load when inner services aren't ready. diff --git a/tower-reconnect/CHANGELOG.md b/tower-reconnect/CHANGELOG.md new file mode 100644 index 00000000..cae251b9 --- /dev/null +++ b/tower-reconnect/CHANGELOG.md @@ -0,0 +1,3 @@ +# 0.1.0 (unreleased) + +- Initial release diff --git a/tower-reconnect/Cargo.toml b/tower-reconnect/Cargo.toml index c59839b5..046d45bb 100644 --- a/tower-reconnect/Cargo.toml +++ b/tower-reconnect/Cargo.toml @@ -1,13 +1,21 @@ [package] name = "tower-reconnect" +# When releasing to crates.io: +# - Remove path dependencies +# - Update html_root_url. +# - Update doc url +# - Cargo.toml +# - README.md +# - Update CHANGELOG.md. +# - Create "v0.1.x" git tag. version = "0.1.0" -authors = ["Carl Lerche "] +authors = ["Tower Maintainers "] license = "MIT" -publish = false edition = "2018" +publish = false [dependencies] log = "0.4.1" -futures = "0.1" +futures = "0.1.26" tower-service = "0.2.0" -tower-util = { version = "0.1", path = "../tower-util" } +tower-util = "0.1.0" diff --git a/tower-reconnect/LICENSE b/tower-reconnect/LICENSE new file mode 100644 index 00000000..b980cacc --- /dev/null +++ b/tower-reconnect/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2019 Tower Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/tower-reconnect/README.md b/tower-reconnect/README.md index ad5f8051..be0f5ac6 100644 --- a/tower-reconnect/README.md +++ b/tower-reconnect/README.md @@ -1,4 +1,13 @@ -Tower Reconnect +# Tower Reconnect -A Tower middleware that automatically recreates an inner service when an error -is encountered. +Automatically recreate a new `Service` instance when an error is encountered. + +## License + +This project is licensed under the [MIT license](LICENSE). + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally submitted +for inclusion in Tower by you, shall be licensed as MIT, without any additional +terms or conditions. diff --git a/tower-reconnect/src/lib.rs b/tower-reconnect/src/lib.rs index 8573f6c8..b6c19604 100644 --- a/tower-reconnect/src/lib.rs +++ b/tower-reconnect/src/lib.rs @@ -1,3 +1,4 @@ +#![doc(html_root_url = "https://docs.rs/tower-load-shed/0.1.0")] #![deny(rust_2018_idioms)] #![allow(elided_lifetimes_in_paths)] diff --git a/tower-retry/CHANGELOG.md b/tower-retry/CHANGELOG.md new file mode 100644 index 00000000..24a6a34e --- /dev/null +++ b/tower-retry/CHANGELOG.md @@ -0,0 +1,3 @@ +# 0.1.0 (April 26, 2019) + +- Initial release diff --git a/tower-retry/Cargo.toml b/tower-retry/Cargo.toml index e654f2f3..43f71ba2 100644 --- a/tower-retry/Cargo.toml +++ b/tower-retry/Cargo.toml @@ -1,17 +1,24 @@ [package] name = "tower-retry" +# When releasing to crates.io: +# - Remove path dependencies +# - Update html_root_url. +# - Update doc url +# - Cargo.toml +# - README.md +# - Update CHANGELOG.md. +# - Create "v0.1.x" git tag. version = "0.1.0" -authors = ["Sean McArthur "] +authors = ["Tower Maintainers "] license = "MIT" -publish = false edition = "2018" [dependencies] -futures = "0.1" +futures = "0.1.26" tower-service = "0.2.0" -tower-layer = { version = "0.1", path = "../tower-layer" } +tower-layer = "0.1.0" tokio-timer = "0.2.4" [dev-dependencies] -tower-test = { version = "0.1", path = "../tower-test" } +tower-test = { version = "0.1.0", path = "../tower-test" } tokio-executor = "0.1.2" diff --git a/tower-retry/LICENSE b/tower-retry/LICENSE new file mode 100644 index 00000000..b980cacc --- /dev/null +++ b/tower-retry/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2019 Tower Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/tower-retry/README.md b/tower-retry/README.md index a37ed21f..433d67f1 100644 --- a/tower-retry/README.md +++ b/tower-retry/README.md @@ -1,4 +1,13 @@ # Tower Retry -A Tower middleware to control retrying of requests when a response error is -encountered. +Retry failed requests. + +## License + +This project is licensed under the [MIT license](LICENSE). + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally submitted +for inclusion in Tower by you, shall be licensed as MIT, without any additional +terms or conditions. diff --git a/tower-retry/src/lib.rs b/tower-retry/src/lib.rs index a925e7a4..77f2b3c8 100644 --- a/tower-retry/src/lib.rs +++ b/tower-retry/src/lib.rs @@ -1,7 +1,6 @@ -#![deny(missing_debug_implementations)] -#![deny(missing_docs)] -// #![deny(warnings)] -#![deny(rust_2018_idioms)] +#![doc(html_root_url = "https://docs.rs/tower-retry/0.1.0")] +#![deny(missing_docs, missing_debug_implementations, rust_2018_idioms)] +#![cfg_attr(test, deny(warnings))] #![allow(elided_lifetimes_in_paths)] //! Tower middleware for retrying "failed" requests. diff --git a/tower-service/Cargo.toml b/tower-service/Cargo.toml index 049137d5..132ea52c 100644 --- a/tower-service/Cargo.toml +++ b/tower-service/Cargo.toml @@ -2,12 +2,15 @@ name = "tower-service" # When releasing to crates.io: +# - Remove path dependencies # - Update html_root_url. +# - Update doc url +# - Cargo.toml +# - README.md # - Update CHANGELOG.md. -# - Update documentation URL -# - Create "v0.x.y" git tag. +# - Create "v0.2.x" git tag. version = "0.2.0" -authors = ["Carl Lerche "] +authors = ["Tower Maintainers "] license = "MIT" readme = "README.md" repository = "https://github.com/tower-rs/tower" diff --git a/tower-service/LICENSE b/tower-service/LICENSE index 58fb29a1..b980cacc 100644 --- a/tower-service/LICENSE +++ b/tower-service/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2018 Carl Lerche +Copyright (c) 2019 Tower Contributors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated diff --git a/tower-test/CHANGELOG.md b/tower-test/CHANGELOG.md new file mode 100644 index 00000000..24a6a34e --- /dev/null +++ b/tower-test/CHANGELOG.md @@ -0,0 +1,3 @@ +# 0.1.0 (April 26, 2019) + +- Initial release diff --git a/tower-test/Cargo.toml b/tower-test/Cargo.toml index ceedb6b4..84265589 100644 --- a/tower-test/Cargo.toml +++ b/tower-test/Cargo.toml @@ -1,13 +1,20 @@ [package] name = "tower-test" +# When releasing to crates.io: +# - Remove path dependencies +# - Update html_root_url. +# - Update doc url +# - Cargo.toml +# - README.md +# - Update CHANGELOG.md. +# - Create "v0.1.x" git tag. version = "0.1.0" -authors = ["Carl Lerche "] +authors = ["Tower Maintainers "] license = "MIT" -publish = false edition = "2018" [dependencies] -futures = "0.1" +futures = "0.1.26" tokio-sync = "0.1.3" tower-service = "0.2.0" diff --git a/tower-test/LICENSE b/tower-test/LICENSE new file mode 100644 index 00000000..b980cacc --- /dev/null +++ b/tower-test/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2019 Tower Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/tower-test/README.md b/tower-test/README.md index 0a84b0e9..16da16c3 100644 --- a/tower-test/README.md +++ b/tower-test/README.md @@ -1,3 +1,13 @@ -Tower Mock +# Tower Mock A mock `Service` that can be used to test middleware or clients. + +## License + +This project is licensed under the [MIT license](LICENSE). + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally submitted +for inclusion in Tower by you, shall be licensed as MIT, without any additional +terms or conditions. diff --git a/tower-test/src/lib.rs b/tower-test/src/lib.rs index 0a7f41c5..593748e9 100644 --- a/tower-test/src/lib.rs +++ b/tower-test/src/lib.rs @@ -1,3 +1,4 @@ +#![doc(html_root_url = "https://docs.rs/tower-test/0.1.0")] #![deny(rust_2018_idioms)] #![allow(elided_lifetimes_in_paths)] diff --git a/tower-timeout/CHANGELOG.md b/tower-timeout/CHANGELOG.md new file mode 100644 index 00000000..24a6a34e --- /dev/null +++ b/tower-timeout/CHANGELOG.md @@ -0,0 +1,3 @@ +# 0.1.0 (April 26, 2019) + +- Initial release diff --git a/tower-timeout/Cargo.toml b/tower-timeout/Cargo.toml index 29a53929..1cd7a616 100644 --- a/tower-timeout/Cargo.toml +++ b/tower-timeout/Cargo.toml @@ -1,13 +1,20 @@ [package] name = "tower-timeout" +# When releasing to crates.io: +# - Remove path dependencies +# - Update html_root_url. +# - Update doc url +# - Cargo.toml +# - README.md +# - Update CHANGELOG.md. +# - Create "v0.1.x" git tag. version = "0.1.0" -authors = ["Carl Lerche "] +authors = ["Tower Maintainers "] license = "MIT" -publish = false edition = "2018" [dependencies] -futures = "0.1" +futures = "0.1.26" tower-service = "0.2.0" -tower-layer = { version = "0.1", path = "../tower-layer" } +tower-layer = "0.1.0" tokio-timer = "0.2.6" diff --git a/tower-timeout/LICENSE b/tower-timeout/LICENSE new file mode 100644 index 00000000..b980cacc --- /dev/null +++ b/tower-timeout/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2019 Tower Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/tower-timeout/README.md b/tower-timeout/README.md index 28207f67..0e2e2370 100644 --- a/tower-timeout/README.md +++ b/tower-timeout/README.md @@ -1,3 +1,13 @@ -Tower Timeout +# Tower Timeout -A Tower middleware that applies a timeout to requests. +Apply a timeout to requests, ensuring completion within a fixed time duration. + +## License + +This project is licensed under the [MIT license](LICENSE). + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally submitted +for inclusion in Tower by you, shall be licensed as MIT, without any additional +terms or conditions. diff --git a/tower-timeout/src/lib.rs b/tower-timeout/src/lib.rs index 8d2fb76b..1aa57cf9 100644 --- a/tower-timeout/src/lib.rs +++ b/tower-timeout/src/lib.rs @@ -1,13 +1,13 @@ -//! Tower middleware that applies a timeout to requests. -//! -//! If the response does not complete within the specified timeout, the response -//! will be aborted. - #![doc(html_root_url = "https://docs.rs/tower-timeout/0.1.0")] #![deny(missing_debug_implementations, missing_docs, rust_2018_idioms)] #![allow(elided_lifetimes_in_paths)] #![cfg_attr(test, deny(warnings))] +//! Tower middleware that applies a timeout to requests. +//! +//! If the response does not complete within the specified timeout, the response +//! will be aborted. + pub mod error; pub mod future; mod layer; diff --git a/tower-util/CHANGELOG.md b/tower-util/CHANGELOG.md new file mode 100644 index 00000000..24a6a34e --- /dev/null +++ b/tower-util/CHANGELOG.md @@ -0,0 +1,3 @@ +# 0.1.0 (April 26, 2019) + +- Initial release diff --git a/tower-util/Cargo.toml b/tower-util/Cargo.toml index 13275431..09dc59b4 100644 --- a/tower-util/Cargo.toml +++ b/tower-util/Cargo.toml @@ -2,12 +2,15 @@ name = "tower-util" # When releasing to crates.io: +# - Remove path dependencies # - Update html_root_url. +# - Update doc url +# - Cargo.toml +# - README.md # - Update CHANGELOG.md. -# - Update documentation URL -# - Create "v0.x.y" git tag. +# - Create "v0.1.x" git tag. version = "0.1.0" -authors = ["Carl Lerche "] +authors = ["Tower Maintainers "] license = "MIT" readme = "README.md" repository = "https://github.com/tower-rs/tower" @@ -26,9 +29,9 @@ io = ["tokio-io"] futures = "0.1.23" tokio-io = { version = "0.1.12", optional = true } tower-service = "0.2.0" -tower-layer = { version = "0.1.0", path = "../tower-layer" } +tower-layer = "0.1.0" [dev-dependencies] -tokio-mock-task = "0.1" +tokio-mock-task = "0.1.1" tower = { version = "0.1.0", path = "../tower" } tower-test = { version = "0.1.0", path = "../tower-test" } diff --git a/tower-util/README.md b/tower-util/README.md index 14f47f44..fbb9d3b9 100644 --- a/tower-util/README.md +++ b/tower-util/README.md @@ -1,6 +1,6 @@ # Tower Service Util -Utilities for working with `tower-service`. +Utilities for working with `Service`. ## License diff --git a/tower-util/src/lib.rs b/tower-util/src/lib.rs index 41d2bb6b..fe71d6f8 100644 --- a/tower-util/src/lib.rs +++ b/tower-util/src/lib.rs @@ -1,7 +1,9 @@ -//! Various utility types and functions that are generally with Tower. +#![doc(html_root_url = "https://docs.rs/tower-util/0.1.0")] #![deny(rust_2018_idioms)] #![allow(elided_lifetimes_in_paths)] +//! Various utility types and functions that are generally with Tower. + mod boxed; mod call_all; mod either; diff --git a/tower/CHANGELOG.md b/tower/CHANGELOG.md new file mode 100644 index 00000000..24a6a34e --- /dev/null +++ b/tower/CHANGELOG.md @@ -0,0 +1,3 @@ +# 0.1.0 (April 26, 2019) + +- Initial release diff --git a/tower/Cargo.toml b/tower/Cargo.toml index da223240..f4fb5682 100644 --- a/tower/Cargo.toml +++ b/tower/Cargo.toml @@ -1,11 +1,18 @@ [package] name = "tower" +# When releasing to crates.io: +# - Remove path dependencies +# - Update html_root_url. +# - Update doc url +# - Cargo.toml +# - README.md +# - Update CHANGELOG.md. +# - Create "v0.1.x" git tag. version = "0.1.0" -authors = ["Carl Lerche "] +authors = ["Tower Maintainers "] license = "MIT" readme = "README.md" repository = "https://github.com/tower-rs/tower" -publish = false description = """ Tower is a library of modular and reusable components for building robust clients and servers. @@ -19,20 +26,20 @@ default = ["full"] full = [] [dependencies] -futures = "0.1" -tower-service = "0.2" -tower-util = { version = "0.1.0", path = "../tower-util", features = ["io"] } -tower-layer = { version = "0.1", path = "../tower-layer" } -tower-limit = { version = "0.1.0", path = "../tower-limit" } -tower-retry = { version = "0.1", path = "../tower-retry" } -tower-buffer = { version = "0.1", path = "../tower-buffer" } -tower-load-shed = { version = "0.1", path = "../tower-load-shed" } -tower-discover = { version = "0.1", path = "../tower-discover" } -tower-timeout = { version = "0.1", path = "../tower-timeout" } +futures = "0.1.26" +tower-buffer = "0.1.0" +tower-discover = "0.1.0" +tower-layer = "0.1.0" +tower-limit = "0.1.0" +tower-load-shed = "0.1.0" +tower-retry = "0.1.0" +tower-service = "0.2.0" +tower-timeout = "0.1.0" +tower-util = { version = "0.1.0", features = ["io"] } [dev-dependencies] -futures = "0.1" +futures = "0.1.26" log = "0.4.1" tokio = "0.1" env_logger = { version = "0.5.3", default-features = false } -void = "1" +void = "1.0.2" diff --git a/tower/LICENSE b/tower/LICENSE new file mode 100644 index 00000000..b980cacc --- /dev/null +++ b/tower/LICENSE @@ -0,0 +1,25 @@ +Copyright (c) 2019 Tower Contributors + +Permission is hereby granted, free of charge, to any +person obtaining a copy of this software and associated +documentation files (the "Software"), to deal in the +Software without restriction, including without +limitation the rights to use, copy, modify, merge, +publish, distribute, sublicense, and/or sell copies of +the Software, and to permit persons to whom the Software +is furnished to do so, subject to the following +conditions: + +The above copyright notice and this permission notice +shall be included in all copies or substantial portions +of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF +ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED +TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A +PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT +SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR +IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. diff --git a/tower/README.md b/tower/README.md index d880edd7..fe56051b 100644 --- a/tower/README.md +++ b/tower/README.md @@ -8,3 +8,13 @@ networking clients and servers. Tower aims to make it as easy as possible to build robust networking clients and servers. It is protocol agnostic, but is designed around a request / response pattern. If your protocol is entirely stream based, Tower may not be a good fit. + +## License + +This project is licensed under the [MIT license](LICENSE). + +### Contribution + +Unless you explicitly state otherwise, any contribution intentionally submitted +for inclusion in Tower by you, shall be licensed as MIT, without any additional +terms or conditions. diff --git a/tower/src/lib.rs b/tower/src/lib.rs index e639c9f4..ccb6aa5c 100644 --- a/tower/src/lib.rs +++ b/tower/src/lib.rs @@ -1,3 +1,4 @@ +#![doc(html_root_url = "https://docs.rs/tower/0.1.0")] // Allows refining features in the future without breaking backwards // compatibility #![cfg(feature = "full")]