From 8b4cb39890016394122a799929aee6662980025b Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 16 Sep 2023 15:35:56 +0200 Subject: refactor!: remove async DI container prelude module BREAKING CHANGE: The async DI container prelude module have been removed as it is no longer necessary seeing as the async DI container interface have been removed --- src/di_container/asynchronous/binding/builder.rs | 10 +++++----- src/di_container/asynchronous/mod.rs | 4 +--- src/di_container/asynchronous/prelude.rs | 3 --- 3 files changed, 6 insertions(+), 11 deletions(-) delete mode 100644 src/di_container/asynchronous/prelude.rs (limited to 'src/di_container') diff --git a/src/di_container/asynchronous/binding/builder.rs b/src/di_container/asynchronous/binding/builder.rs index 7050847..c253929 100644 --- a/src/di_container/asynchronous/binding/builder.rs +++ b/src/di_container/asynchronous/binding/builder.rs @@ -62,7 +62,7 @@ where /// # use std::error::Error; /// # /// # use syrette::injectable; - /// # use syrette::di_container::asynchronous::prelude::*; + /// # use syrette::AsyncDIContainer; /// # /// # trait Foo: Send + Sync {} /// # @@ -130,7 +130,7 @@ where /// # use std::error::Error; /// # /// # use syrette::{factory}; - /// # use syrette::di_container::asynchronous::prelude::*; + /// # use syrette::AsyncDIContainer; /// # use syrette::ptr::TransientPtr; /// # /// # trait Foo: Send + Sync {} @@ -220,7 +220,7 @@ where /// # use std::time::Duration; /// # /// # use syrette::{factory}; - /// # use syrette::di_container::asynchronous::prelude::*; + /// # use syrette::AsyncDIContainer; /// # use syrette::ptr::TransientPtr; /// # use syrette::future::BoxFuture; /// # @@ -320,7 +320,7 @@ where /// ``` /// # use std::error::Error; /// # - /// # use syrette::di_container::asynchronous::prelude::*; + /// # use syrette::AsyncDIContainer; /// # use syrette::ptr::TransientPtr; /// # /// # trait Foo: Send + Sync {} @@ -410,7 +410,7 @@ where /// # use std::error::Error; /// # use std::time::Duration; /// # - /// # use syrette::di_container::asynchronous::prelude::*; + /// # use syrette::AsyncDIContainer; /// # use syrette::ptr::TransientPtr; /// # /// # trait Foo: Send + Sync {} diff --git a/src/di_container/asynchronous/mod.rs b/src/di_container/asynchronous/mod.rs index 73b1382..c2b4f6f 100644 --- a/src/di_container/asynchronous/mod.rs +++ b/src/di_container/asynchronous/mod.rs @@ -5,8 +5,7 @@ //! use std::collections::HashMap; //! use std::error::Error; //! -//! use syrette::di_container::asynchronous::prelude::*; -//! use syrette::injectable; +//! use syrette::{injectable, AsyncDIContainer}; //! //! trait IDatabaseService: Send + Sync //! { @@ -70,7 +69,6 @@ use crate::util::use_double; use_double!(crate::dependency_history::DependencyHistory); pub mod binding; -pub mod prelude; /// Async dependency injection container. pub struct AsyncDIContainer diff --git a/src/di_container/asynchronous/prelude.rs b/src/di_container/asynchronous/prelude.rs deleted file mode 100644 index afbb0a2..0000000 --- a/src/di_container/asynchronous/prelude.rs +++ /dev/null @@ -1,3 +0,0 @@ -//! Commonly used types. - -pub use crate::di_container::asynchronous::AsyncDIContainer; -- cgit v1.2.3-18-g5258