3 releases

Uses old Rust 2015

0.1.2 Sep 6, 2016
0.1.1 Sep 5, 2016
0.1.0 Sep 5, 2016

#5 in #undocumented

MIT license

5KB
104 lines

Corruption

Undocumented rust web framework made with 👣

Usage

Do not use. Dev in progress.

extern crate corruption;

use corruption::Corruption;
use corruption::response::Response;


fn main() {
    // Start Corruption
    let mut corruption = Corruption::new();

    // Declare routes
    corruption
        .get("/test", |_| Response::html_str("<p>test ok</p>") )
        .get("/test2", |_| Response::html_str("<p>test 2 ok</p>") );

    // Serve it to the world on 127.0.0.1:8080
    corruption.serve();
}

Todo

  • Requests
  • Middlewares
  • Use handlebars
  • Route parameters

Dependencies

~10MB
~223K SLoC