susanoo

Crates.iosusanoo
lib.rssusanoo
version0.0.6
sourcesrc
created_at2017-07-16 15:56:39.773512
updated_at2018-02-08 09:13:02.556223
descriptionA micro Web framework, based on futures, tokio and hyper
homepagehttps://ubnt-intrepid.github.io/susanoo
repositoryhttps://github.com/ubnt-intrepid/susanoo.git
max_upload_size
id23640
size37,123
Yusuke Sasaki (ubnt-intrepid)

documentation

https://docs.rs/susanoo

README

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.

Commit count: 0

cargo fmt