arcature 2026.2.1

Arcature application framework: a high-level Application facade over the certified Arcature subsystems, with the low-level Axum/Tower escape hatch preserved.
Documentation
//! Minimal Arcature HTTP application.
//!
//! Demonstrates the intended user experience: construct an [`App`], register a
//! route, bind a listener, and serve. Run with:
//!
//! ```sh
//! cargo run --example hello
//! ```
//!
//! Then visit `http://127.0.0.1:3000/` in a browser or with curl.

use arcature::App;
use arcature::axum::routing::get;
use tokio::net::TcpListener;

async fn hello() -> &'static str {
    "hello from arcature"
}

#[tokio::main]
async fn main() -> std::io::Result<()> {
    let app = App::new().route("/", get(hello));

    let listener = TcpListener::bind("127.0.0.1:3000").await?;

    println!("listening on http://127.0.0.1:3000/");
    app.serve(listener).await
}