🏗️ Elegant & Highly Performant Async Gemini Server Framework for the Modern Age
async framework gemini-protocol protocol gemini rust
at main 23 lines 524 B view raw
1//! `cargo run --example default_logger --features logger,response-macros` 2 3#[windmark::main] 4async fn main() -> Result<(), Box<dyn std::error::Error>> { 5 let mut router = windmark::router::Router::new(); 6 7 router.set_private_key_file("windmark_private.pem"); 8 router.set_certificate_file("windmark_public.pem"); 9 #[cfg(feature = "logger")] 10 { 11 router.enable_default_logger(true); 12 } 13 router.mount( 14 "/", 15 windmark::success!({ 16 log::info!("Hello!"); 17 18 "Hello!" 19 }), 20 ); 21 22 router.run().await 23}