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

#41 in #grpc

Download history 3/week @ 2024-01-16 6/week @ 2024-01-23 4/week @ 2024-02-13 40/week @ 2024-02-20 22/week @ 2024-02-27 32/week @ 2024-03-12 47/week @ 2024-03-26 192/week @ 2024-04-02

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

~27–46MB
~759K SLoC