#web-framework #framework #future #web

yanked susanoo

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

Uses old Rust 2015

0.0.6 Feb 8, 2018
0.0.5 Aug 12, 2017
0.0.3 Jul 22, 2017

#221 in #futures


Used in 2 crates

MIT/Apache

38KB
1K SLoC

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.

Dependencies

~13MB
~228K SLoC