Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Tower Web
A web framework for Rust with a focus on removing boilerplate.
Tower Web is:
- Fast: Fully asynchronous, built on Tokio and Hyper.
- Ergonomic: Tower-web decouples HTTP from your application logic, removing all boilerplate.
- Works on Rust stable: You can use it today.
Hello World
extern crate tower_web;
extern crate tokio;
use ServiceBuilder;
use *;
/// This type will be part of the web service as a resource.
;
/// This will be the JSON response
impl_web!
Overview
Tower Web aims to decouple all HTTP concepts from the application logic. You define a "plain old Rust method" (PORM?). This method takes only the data it needs to complete and returns a struct representing the response. Tower Web does the rest.
The impl_web
macro looks at the definition and generates the glue code,
allowing the method to respond to HTTP requests.
In order to work on Rust stable today, Tower Web uses doc comments as attributes. Once Macro 1.2 lands, this will be switched to real attributes.
Getting Started
The best way to get started is to read the examples and API docs.
License
This project is licensed under the MIT license.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in tower-web
by you, shall be licensed as MIT, without any
additional terms or conditions.