🏗️ 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.

fix(router): tokio namespace

Fuwn dd818f09 15e1bccb

+7 -7
+1 -1
Cargo.toml
··· 2 2 3 3 [package] 4 4 name = "windmark" 5 - version = "0.3.3" 5 + version = "0.3.4" 6 6 authors = ["Fuwn <contact@fuwn.me>"] 7 7 edition = "2021" 8 8 description = "An elegant and highly performant async Gemini server framework"
+4 -4
README.md
··· 18 18 # Cargo.toml 19 19 20 20 [dependencies] 21 - windmark = "0.3.3" 21 + windmark = "0.3.4" 22 22 tokio = { version = "1.26.0", features = ["full"] } 23 23 24 24 # If you would like to use the built-in logger (recommended) 25 - # windmark = { version = "0.3.3", features = ["logger"] } 25 + # windmark = { version = "0.3.4", features = ["logger"] } 26 26 27 27 # If you would like to use the built-in MIME dedection when `Success`-ing a file 28 28 # (recommended) 29 - # windmark = { version = "0.3.3", features = ["auto-deduce-mime"] } 29 + # windmark = { version = "0.3.4", features = ["auto-deduce-mime"] } 30 30 31 31 # If you would like to use macro-based responses (as seen below) 32 - # windmark = { version = "0.3.3", features = ["response-macros"] } 32 + # windmark = { version = "0.3.4", features = ["response-macros"] } 33 33 ``` 34 34 35 35 ### Implement a Windmark server
+2 -2
src/router.rs
··· 47 47 48 48 macro_rules! block { 49 49 ($body:expr) => { 50 - tokio::task::block_in_place(|| { 51 - tokio::runtime::Handle::current().block_on(async { $body }); 50 + ::tokio::task::block_in_place(|| { 51 + ::tokio::runtime::Handle::current().block_on(async { $body }); 52 52 }); 53 53 }; 54 54 }