fregate

Crates.iofregate
lib.rsfregate
version0.19.0-3
sourcesrc
created_at2022-08-08 05:32:31.607577
updated_at2024-02-09 18:14:36.927666
descriptionFramework for services creation
homepagehttps://github.com/elefant-dev/fregate-rs
repositoryhttps://github.com/elefant-dev/fregate-rs
max_upload_size
id640643
size266,695
Petr Makagon (elefant-dev)

documentation

README

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.

Commit count: 160

cargo fmt