aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-08-02 14:31:31 +0200
committerHampusM <hampus@hampusmat.com>2022-08-02 14:31:31 +0200
commit826592eac2601e9fcd5aabb17482b4816ed7ab88 (patch)
tree3c3ba5436ca76e0738e4cc8deefef3025fd5d4bd /src/interfaces
parent163cd3cedd398f5676edbcb3249dd958d3e97aca (diff)
feat: add detection and prevention of circular dependencies
Diffstat (limited to 'src/interfaces')
-rw-r--r--src/interfaces/injectable.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interfaces/injectable.rs b/src/interfaces/injectable.rs
index 31cd21b..e6e4ced 100644
--- a/src/interfaces/injectable.rs
+++ b/src/interfaces/injectable.rs
@@ -13,6 +13,7 @@ pub trait Injectable: CastFrom
/// Will return `Err` if resolving the dependencies fails.
fn resolve(
di_container: &DIContainer,
+ dependency_history: Vec<&'static str>,
) -> error_stack::Result<TransientPtr<Self>, ResolveError>
where
Self: Sized;