aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.toml4
-rw-r--r--src/di_container/asynchronous/mod.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index b6dca81..2f6f9c7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,7 +17,7 @@ rustdoc-args = ["--cfg", "doc_cfg"]
default = ["prevent-circular"]
factory = ["syrette_macros/factory"]
prevent-circular = ["syrette_macros/prevent-circular"]
-async = ["dep:async-trait", "dep:tokio"]
+async = ["dep:async-trait", "dep:async-lock"]
[[example]]
name = "factory"
@@ -49,7 +49,7 @@ strum = "0.24.1"
strum_macros = "0.24.3"
paste = "1.0.8"
async-trait = { version = "0.1.57", optional = true }
-tokio = { version = "1.20.1", features = ["sync"], optional = true }
+async-lock = { version = "2.6.0", optional = true }
[dev_dependencies]
mockall = { git = "https://github.com/HampusMat/mockall" }
diff --git a/src/di_container/asynchronous/mod.rs b/src/di_container/asynchronous/mod.rs
index 89b2fba..65f5c9e 100644
--- a/src/di_container/asynchronous/mod.rs
+++ b/src/di_container/asynchronous/mod.rs
@@ -54,8 +54,8 @@
use std::any::type_name;
use std::sync::Arc;
+use async_lock::Mutex;
use async_trait::async_trait;
-use tokio::sync::Mutex;
use crate::dependency_history::{DependencyHistory, IDependencyHistory};
use crate::di_container::asynchronous::binding::builder::AsyncBindingBuilder;