Crates.io | grenade |
lib.rs | grenade |
version | 0.1.6 |
source | src |
created_at | 2023-08-06 12:02:47.613497 |
updated_at | 2023-08-18 12:13:01.551819 |
description | Web applications framework with a focus on ease-to-use and speed |
homepage | |
repository | https://github.com/yhyadev/grenade |
max_upload_size | |
id | 937107 |
size | 11,737 |
Grenade is a web framework focused on simplicity and speed, It's designed for various use cases and emphasizes the following key features:
Start by adding the Grenade library to your project's Cargo.toml
file:
[dependencies]
grenade = "0.1"
use grenade::*;
fn hello_world(_: Context) -> String {
"Hello World!".to_string()
}
fn main() {
let mut app = App::build();
app.get("/", hello_world);
app.listen(8080).unwrap();
}
Use the following command to run your Grenade app:
$ cargo run
Your app will be up and running at http://localhost:8080/
.
We welcome and appreciate contributions from the community. There are no strict rules; just make your changes and start a pull request.