aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-18 21:29:47 +0000
committerFuwn <[email protected]>2023-04-18 21:29:47 +0000
commit49cd06600431bc314e9c1cebfc73ecfbe5d9f894 (patch)
tree214acfd8abe32069f6af5001f54bf8c6fa4dab24 /Cargo.toml
parentfeat: improve macro hygiene (diff)
downloadwindmark-49cd06600431bc314e9c1cebfc73ecfbe5d9f894.tar.xz
windmark-49cd06600431bc314e9c1cebfc73ecfbe5d9f894.zip
feat: async-std support !!
Diffstat (limited to 'Cargo.toml')
-rw-r--r--Cargo.toml8
1 files changed, 6 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 9f5bade..960224b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -18,15 +18,19 @@ categories = ["web-programming"]
logger = ["pretty_env_logger"]
auto-deduce-mime = ["tree_magic"]
response-macros = []
+tokio = ["dep:tokio", "tokio-openssl"]
+async-std = ["dep:async-std", "async-std-openssl"]
[dependencies]
# SSL
openssl = "0.10.38"
-tokio-openssl = "0.6.3"
+tokio-openssl = { version = "0.6.3", optional = true }
+async-std-openssl = { version = "0.6.3", optional = true }
# Non-blocking I/O
-tokio = { version = "1.26.0", features = ["full"] }
+tokio = { version = "1.26.0", features = ["full"], optional = true }
async-trait = "0.1.68"
+async-std = { version = "1.12.0", features = ["attributes"], optional = true }
# Logging
pretty_env_logger = { version = "0.4.0", optional = true }