🏗️ Elegant & Highly Performant Async Gemini Server Framework for the Modern Age
async
framework
gemini-protocol
protocol
gemini
rust
1//! `cargo run --example input --features response-macros`
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 "/query",
10 windmark::success!(
11 context,
12 format!(
13 "You provided the following queries: '{:?}'",
14 windmark::utilities::queries_from_url(&context.url)
15 )
16 ),
17 )
18 .run()
19 .await
20}