42 releases (16 breaking)

0.19.0-3 Feb 9, 2024
0.18.0 Jan 2, 2024
0.17.1 Nov 16, 2023
0.14.0 Jul 21, 2023
0.5.0 Nov 24, 2022

#1565 in Web programming

Download history

246 downloads per month

Apache-2.0

185KB
4.5K SLoC

fregate-rs

Set of instruments to simplify http server set-up.

Work in progress

This project is in progress and might change a lot from version to version.

Example:

use fregate::{
    axum::{routing::get, Router},
    bootstrap, tokio, AppConfig, Application,
};

async fn handler() -> &'static str {
    "Hello, World!"
}

#[tokio::main]
async fn main() {
    let config: AppConfig = bootstrap([]).unwrap();

    Application::new(config)
        .router(Router::new().route("/", get(handler)))
        .serve()
        .await
        .unwrap();
}

More examples can be found here.


lib.rs:

Set of instruments to simplify http server set-up.\

This project is in progress and might change a lot from version to version.

Example:

use fregate::{
    axum::{routing::get, Router},
    bootstrap, tokio, AppConfig, Application,
};

async fn handler() -> &'static str {
    "Hello, World!"
}

#[tokio::main]
async fn main() {
    let config: AppConfig = bootstrap([]).unwrap();

Application::new(config)
        .router(Router::new().route("/", get(handler)))
        .serve()
        .await
        .unwrap();
}

Examples

Examples can be found here.

Dependencies

~28–46MB
~769K SLoC