🏗️ Elegant & Highly Performant Async Gemini Server Framework for the Modern Age
async
framework
gemini-protocol
protocol
gemini
rust
1//! `cargo run --example simple_tokio --features tokio`
2
3#[windmark::main]
4async fn main() -> Result<(), Box<dyn std::error::Error>> {
5 windmark::router::Router::new()
6 .set_private_key_file("windmark_private.pem")
7 .set_certificate_file("windmark_public.pem")
8 .mount("/", |_| {
9 windmark::response::Response::success("Hello, Tokio!")
10 })
11 .run()
12 .await
13}