susanoo

A micro Web framework, based on futures, tokio and hyper


Keywords
web, futures, susanoo, framework, microframework, rust
Licenses
MIT/Apache-2.0

Documentation

susanoo

Build Status crates.io docs-rs Join the chat at https://gitter.im/ubnt-intrepid/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 and hyper
  • 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.