🏗️ 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(rossweisse): add a readme

Fuwn 26a2b91f c68aec02

+48
+1
rossweisse/Cargo.toml
··· 7 7 edition = "2021" 8 8 description = "`struct`-based Router Framework for Windmark" 9 9 documentation = "https://docs.rs/rossweisse" 10 + readme = "README.md" 10 11 repository = "https://github.com/gemrest/windmark" 11 12 license = "GPL-3.0-only" 12 13 keywords = ["gemini", "windmark"]
+47
rossweisse/README.md
··· 1 + # Rossweisse 2 + 3 + `struct`-based Router Framework for [Windmark](https://github.com/gemrest/windmark) 4 + 5 + ## Usage 6 + 7 + Rossweisse is in it's infancy, and a much comprehensive interface is planned. 8 + 9 + For now, a simple Rosswiesse router can be implemented like this: 10 + 11 + ```rust 12 + use rossweisse::route; 13 + 14 + #[rossweisse::router] 15 + struct Router { 16 + _phantom: (), 17 + } 18 + 19 + #[rossweisse::router] 20 + impl Router { 21 + #[route] 22 + pub fn index( 23 + _context: windmark::context::RouteContext, 24 + ) -> windmark::Response { 25 + windmark::Response::success("Hello, World!") 26 + } 27 + } 28 + 29 + #[windmark::main] 30 + async fn main() -> Result<(), Box<dyn std::error::Error>> { 31 + { 32 + let mut router = Router::new(); 33 + 34 + router.router().set_private_key_file("windmark_private.pem"); 35 + router.router().set_certificate_file("windmark_public.pem"); 36 + 37 + router 38 + } 39 + .run() 40 + .await 41 + } 42 + ``` 43 + 44 + ## License 45 + 46 + This project is licensed with the 47 + [GNU General Public License v3.0](https://github.com/gemrest/windmark/blob/main/LICENSE).