#web-apps #speed #applications #web-framework #focus #ease-to-use

deprecated grenade

Web applications framework with a focus on ease-to-use and speed

5 releases

Uses old Rust 2015

0.1.6 Aug 18, 2023
0.1.5 Aug 15, 2023
0.1.4 Aug 11, 2023
0.1.1 Aug 6, 2023
0.1.0 Aug 6, 2023

#70 in #focus

40 downloads per month

MIT license

12KB
245 lines

Grenadely Fast Web Framework

Grenade is a web framework focused on simplicity and speed, It's designed for various use cases and emphasizes the following key features:

Key Features

  • Simplicity and Ease-of-use: Grenade prioritizes a straightforward and user-friendly development experience.
  • Speed: We believe that fast is always a good thing, and Grenade is optimized for performance.
  • Type Safety: Enjoy the benefits of Rust's strong type system, ensuring robust and reliable code.

Getting Started

Add Grenade to Your Project

Start by adding the Grenade library to your project's Cargo.toml file:

[dependencies]
grenade = "0.1"

Create Your First Grenade App

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();
}

Run Your Project

Use the following command to run your Grenade app:

$ cargo run

Your app will be up and running at http://localhost:8080/.

Documentation

Auto-generated Documentation

Contributing

We welcome and appreciate contributions from the community. There are no strict rules; just make your changes and start a pull request.

Dependencies

~110KB