From 49cd06600431bc314e9c1cebfc73ecfbe5d9f894 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 18 Apr 2023 21:29:47 +0000 Subject: feat: async-std support !! --- Cargo.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Cargo.toml') 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 } -- cgit v1.2.3