aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-27 06:24:17 +0000
committerFuwn <[email protected]>2023-04-27 06:24:17 +0000
commit875e201e94ab602eb47cebc3f17cd7ab4ead643c (patch)
tree68710bf3d77e4d3d2ac614fe054f8faf2d6df8a7 /examples
parentdocs(rossweisse): add a readme (diff)
downloadwindmark-875e201e94ab602eb47cebc3f17cd7ab4ead643c.tar.xz
windmark-875e201e94ab602eb47cebc3f17cd7ab4ead643c.zip
fix(ci): fix tests and doc examples
Diffstat (limited to 'examples')
-rw-r--r--examples/async.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/async.rs b/examples/async.rs
index 2c32220..d803ad6 100644
--- a/examples/async.rs
+++ b/examples/async.rs
@@ -20,7 +20,10 @@
#[windmark::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let mut router = windmark::Router::new();
+ #[cfg(feature = "tokio")]
let async_clicks = std::sync::Arc::new(tokio::sync::Mutex::new(0));
+ #[cfg(feature = "async-std")]
+ let async_clicks = std::sync::Arc::new(async_std::sync::Mutex::new(0));
router.set_private_key_file("windmark_private.pem");
router.set_certificate_file("windmark_public.pem");