Skip to main content

Module app

Module app 

Source
Expand description

The AtrgApp builder — the main entry point for assembling and running an atrg server.

A minimal application looks like this:

use atrg_core::AtrgApp;

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    AtrgApp::new()
        .mount(axum::Router::new())
        .run()
        .await
}

Structs§

AtrgApp
The application builder. Accumulates user routers and configuration, then boots the full server when AtrgApp::run is called.