finchers
is a combinator library for building asynchronous HTTP services.
The concept and design was highly inspired by finch
.
- Asynchronous handling powerd by futures and Tokio
- Building an HTTP service by combining the primitive components
- Type-safe routing without (unstable) procedural macros
Add this item to Cargo.toml
in your project:
[dependencies]
finchers = "0.14.0-dev"
use finchers::{
prelude::*,
endpoint::syntax::path,
};
fn main() -> izanami::Result<()> {
let endpoint = path!(@get "/greeting/<String>")
.map(|name: String| {
format!("Hello, {}!\n", name)
});
izanami::Server::build()
.start(endpoint.into_service())
}
finchers-juniper
- GraphQL integration support, based onjuniper
finchers-tungstenite
- WebSocket support, based ontungstenite
finchers-session
: Session supportfinchers-template
: Template engine support
Travis CI | Codecov |
---|---|
This project is licensed under either of
- MIT license, (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
at your option.