aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-08 00:42:05 +0000
committerFuwn <[email protected]>2023-04-08 00:42:05 +0000
commitd0369a79c3bea3373446c8620e41ffd3e24c64be (patch)
tree2c5f12ea4145228f17fd88827de7a5bcc6e53a3c
parentchore(git): ignore vscode configuration files (diff)
downloadwindmark-0.3.4.tar.xz
windmark-0.3.4.zip
fix(router): tokio namespacev0.3.4
-rw-r--r--Cargo.toml2
-rw-r--r--README.md8
-rw-r--r--src/router.rs4
3 files changed, 7 insertions, 7 deletions
diff --git a/Cargo.toml b/Cargo.toml
index f6e53d0..8d1c4fb 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -2,7 +2,7 @@
[package]
name = "windmark"
-version = "0.3.3"
+version = "0.3.4"
authors = ["Fuwn <[email protected]>"]
edition = "2021"
description = "An elegant and highly performant async Gemini server framework"
diff --git a/README.md b/README.md
index 25ebd52..3313b8f 100644
--- a/README.md
+++ b/README.md
@@ -18,18 +18,18 @@ Check out an example starter project
# Cargo.toml
[dependencies]
-windmark = "0.3.3"
+windmark = "0.3.4"
tokio = { version = "1.26.0", features = ["full"] }
# If you would like to use the built-in logger (recommended)
-# windmark = { version = "0.3.3", features = ["logger"] }
+# windmark = { version = "0.3.4", features = ["logger"] }
# If you would like to use the built-in MIME dedection when `Success`-ing a file
# (recommended)
-# windmark = { version = "0.3.3", features = ["auto-deduce-mime"] }
+# windmark = { version = "0.3.4", features = ["auto-deduce-mime"] }
# If you would like to use macro-based responses (as seen below)
-# windmark = { version = "0.3.3", features = ["response-macros"] }
+# windmark = { version = "0.3.4", features = ["response-macros"] }
```
### Implement a Windmark server
diff --git a/src/router.rs b/src/router.rs
index 0b550c4..f5f6725 100644
--- a/src/router.rs
+++ b/src/router.rs
@@ -47,8 +47,8 @@ use crate::{
macro_rules! block {
($body:expr) => {
- tokio::task::block_in_place(|| {
- tokio::runtime::Handle::current().block_on(async { $body });
+ ::tokio::task::block_in_place(|| {
+ ::tokio::runtime::Handle::current().block_on(async { $body });
});
};
}