Import 'tower-layer' crate

Request Document: go/android-rust-importing-crates
For CL Reviewers: go/android3p#cl-review
For Build Team: go/ab-third-party-imports

Bug: http://b/339177789
Test: m libtower_layer
Change-Id: Ie69809a8667e3bad30ea9ee276c6bb0bb1403973
15 files changed
tree: 7f97e67a95e82bb703b95f6c617dc27a5b9b05ea
  1. src/
  2. Android.bp
  3. Cargo.toml
  4. Cargo.toml.orig
  5. cargo_embargo.json
  6. CHANGELOG.md
  7. LICENSE
  8. METADATA
  9. MODULE_LICENSE_MIT
  10. OWNERS
  11. README.md
README.md

Tower Layer

Decorates a Tower Service, transforming either the request or the response.

Crates.io Documentation Documentation (master) MIT licensed Build Status Discord chat

Overview

Often, many of the pieces needed for writing network applications can be reused across multiple services. The Layer trait can be used to write reusable components that can be applied to very different kinds of services; for example, it can be applied to services operating on different protocols, and to both the client and server side of a network transaction.

License

This project is licensed under the MIT 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.