Crates.io | tsukuyomi |
lib.rs | tsukuyomi |
version | 0.5.3 |
source | src |
created_at | 2018-06-12 13:33:01.436556 |
updated_at | 2018-12-26 15:46:06.569307 |
description | Asynchronous Web framework for Rust |
homepage | |
repository | https://github.com/tsukuyomi-rs/tsukuyomi.git |
max_upload_size | |
id | 69761 |
size | 247,899 |
Asynchronous Web framework for Rust.
Extractor
systemtokio
, hyper
and tower-service
native-tls
, rustls
or openssl
)use {
std::net::SocketAddr,
tsukuyomi::{
App,
config::prelude::*,
},
tsukuyomi_server::Server,
};
fn main() -> tsukuyomi_server::Result<()> {
let app = App::create(
path!("/")
.to(endpoint::reply("Hello, world.\n"))
)?;
let addr = SocketAddr::from(([127, 0, 0, 1], 4000));
println!("Listening on http://{}", addr);
Server::new(app).bind(addr).run()
}
tsukuyomi-askama
- template support using askama
tsukuyomi-cors
- CORS supporttsukuyomi-juniper
- GraphQL integration using juniper
tsukuyomi-session
- session managementtsukuyomi-tungstenite
- WebSocket support using tungstenite
Tsukuyomi is licensed under either of MIT license or Apache License, Version 2.0 at your option.