🏗️ 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.md): update outdated readme

Fuwn c7d48a8c 398830dd

+7 -3
+6 -3
README.md
··· 9 9 10 10 ## Usage 11 11 12 - ### Add Windmark as a dependency 12 + Check out an example starter project 13 + [here](https://github.com/gemrest/windmark-starter-project]! 14 + 15 + ### Add Windmark and Tokio as Dependencies 13 16 14 17 ```toml 15 18 # Cargo.toml ··· 34 37 use windmark::Response; 35 38 36 39 #[windmark::main] 37 - fn main() -> Result<(), Box<dyn std::error::Error>> { 40 + async fn main() -> Result<(), Box<dyn std::error::Error>> { 38 41 windmark::Router::new() 39 42 .set_private_key_file("windmark_private.pem") 40 - .set_certificate_chain_file("windmark_public.pem") 43 + .set_certificate_file("windmark_public.pem") 41 44 .mount("/", Box::new(|_| Response::Success("Hello, World!".into()))) 42 45 .set_error_handler(Box::new(|_| { 43 46 Response::PermanentFailure("This route does not exist!".into())
+1
src/lib.rs
··· 44 44 pub use response::Response; 45 45 pub use router::Router; 46 46 pub use tokio::main; 47 +