krustie 0.1.13

Krustie is a simple and easy-to-use backend framework.
Documentation
krustie-0.1.13 has been yanked.

Krustie - A Basic Backend Framework

Krustie is a simple and easy-to-use backend framework. It is designed to be a simple and easy-to-use web server that can be used for a variety of purposes. Krustie's error-prone design makes it difficult to write incorrect code.

Krustie is still in the early stages of development and is not yet ready for production use. The API is subject to change and there may be bugs or missing features.

Features

  • Router with support for parameter and query string parsing
  • Middleware support for routers and endpoints
  • JSON data parsing and serialization (using the serde library)

Built-in Middlewares

  • Static file serving
  • Rate limiting
  • Gzip compression

Start your server

use krustie::{ Router, Server, StatusCode };

fn main() {
    let mut server = Server::create();
    let mut router = Router::new();

    router.get("/", |_, res| {
        res.status(StatusCode::Ok).body_text("Hello World!");
    });

    server.use_handler(router);

    server.listen(8080);
}

Contributing

All contributions are welcomed. Please open an issue or a pull request to report a bug or request a feature.