Uses old Rust 2015
0.0.6 |
|
---|---|
0.0.5 |
|
0.0.3 |
|
#258 in #futures
Used in 2 crates
38KB
1K
SLoC
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:
- asynchronous handling based on
tokio
,futures
andhyper
- ease of use
- extensible by using middlewares
Hello, world
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.
Documentation
Contributing
Contributions are welcome. Please read contribution guide at first.
License
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.
Dependencies
~13MB
~231K SLoC