🏗️ Elegant & Highly Performant Async Gemini Server Framework for the Modern Age
async framework gemini-protocol protocol gemini rust
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

docs(README): Fix example use declarations

Fuwn 13b9acc4 55a95734

+5 -5
+5 -5
README.md
··· 53 53 ```rust 54 54 // src/main.rs 55 55 56 - // ... 56 + use windmark::response::Response; 57 57 58 58 #[windmark::main] 59 59 async fn main() -> Result<(), Box<dyn std::error::Error>> { 60 60 windmark::router::Router::new() 61 61 .set_private_key_file("windmark_private.pem") 62 62 .set_certificate_file("windmark_public.pem") 63 - .mount("/", windmark::success!("Hello, World!")) 63 + .mount("/", |_| Response::success("Hello, World!")) 64 64 .set_error_handler(|_| 65 - windmark::response::Response::permanent_failure("This route does not exist!") 65 + Response::permanent_failure("This route does not exist!") 66 66 ) 67 67 .run() 68 68 .await ··· 74 74 ```rust 75 75 // src/main.rs 76 76 77 - // ... 77 + use windmark::response::Response; 78 78 79 79 #[rossweisse::router] 80 80 struct Router; 81 81 82 82 #[rossweisse::router] 83 83 impl Router { 84 - #[route(index)] 84 + #[rossweisse::route(index)] 85 85 pub fn index( 86 86 _context: windmark::context::RouteContext, 87 87 ) -> Response {