Crates.io | susanoo |
lib.rs | susanoo |
version | 0.0.6 |
source | src |
created_at | 2017-07-16 15:56:39.773512 |
updated_at | 2018-02-08 09:13:02.556223 |
description | A micro Web framework, based on futures, tokio and hyper |
homepage | https://ubnt-intrepid.github.io/susanoo |
repository | https://github.com/ubnt-intrepid/susanoo.git |
max_upload_size | |
id | 23640 |
size | 37,123 |
susanoo
WARNING
This project is currently under development, and not production ready.
Some breaking changes will occurs until v0.1.0 released.
susanoo
is a micro Web framework for Rust, focused on asynchronous handling and ease of use.
The design of this project is highly inspired by existed Web frameworks (Iron, Nickel and Rocket). The features are as follows:
tokio
, futures
and hyper
Here is our first Web application by using susanoo
:
extern crate susanoo;
use susanoo::prelude::*;
fn hello(ctx: &mut Context) -> &'static str {
"Hello, Susanoo!"
}
fn main() {
Susanoo::default()
.with_route(Route::get("/", hello))
.run()
.unwrap();
}
More examples are available in the examples/
directory.
Contributions are welcome. Please read contribution guide at first.
susanoo
is primarily distributed under the terms of both the MIT license and
the Apache License (Version 2.0), with portions covered by various BSD-like licenses.
See LICENSE-APACHE and LICENSE-MIT for details.