diff options
| author | Fuwn <[email protected]> | 2023-04-08 00:42:05 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-04-08 00:42:05 +0000 |
| commit | d0369a79c3bea3373446c8620e41ffd3e24c64be (patch) | |
| tree | 2c5f12ea4145228f17fd88827de7a5bcc6e53a3c | |
| parent | chore(git): ignore vscode configuration files (diff) | |
| download | windmark-0.3.4.tar.xz windmark-0.3.4.zip | |
fix(router): tokio namespacev0.3.4
| -rw-r--r-- | Cargo.toml | 2 | ||||
| -rw-r--r-- | README.md | 8 | ||||
| -rw-r--r-- | src/router.rs | 4 |
3 files changed, 7 insertions, 7 deletions
@@ -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" @@ -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 }); }); }; } |