Crates.io | krustie |
lib.rs | krustie |
version | |
source | src |
created_at | 2024-06-07 22:07:31.684149 |
updated_at | 2024-12-04 13:54:36.641319 |
description | Krustie is a simple and easy-to-use backend framework. |
homepage | https://github.com/emrecancorapci/krustie |
repository | https://github.com/emrecancorapci/krustie |
max_upload_size | |
id | 1265212 |
Cargo.toml error: | TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Krustie is a simple backend framework. It is designed to be a easy-to-use HTTP web server that can be used for a variety of purposes. Krustie's error-proof design aims to make it harder to write bugs.
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.
serde
library)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);
}
All contributions are welcomed. Please open an issue or a pull request to report a bug or request a feature.