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

#1450 in Web programming

Download history 10/week @ 2023-12-31 3/week @ 2024-01-14 6/week @ 2024-01-21 39/week @ 2024-02-18 25/week @ 2024-02-25 2/week @ 2024-03-03 32/week @ 2024-03-10 239/week @ 2024-03-31

271 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

~29–48MB
~786K SLoC