aboutsummaryrefslogtreecommitdiff
path: root/macros/src/factory/build_declare_interfaces.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-10-09 12:05:24 +0200
committerHampusM <hampus@hampusmat.com>2022-10-09 17:03:01 +0200
commit5b0c6a52022e67a2d9cee251b3d08b9cb2b5f6cb (patch)
treec33f06eaab96ec43e477ea5ecd2af93e9d739097 /macros/src/factory/build_declare_interfaces.rs
parent97c789e38bb8e61389a3808d241689e623144344 (diff)
refactor!: reorganize DI containers
BREAKING CHANGE: DIContainer, AsyncDIContainer & the binding structs have been relocated
Diffstat (limited to 'macros/src/factory/build_declare_interfaces.rs')
-rw-r--r--macros/src/factory/build_declare_interfaces.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/macros/src/factory/build_declare_interfaces.rs b/macros/src/factory/build_declare_interfaces.rs
index 61e162f..6ab135e 100644
--- a/macros/src/factory/build_declare_interfaces.rs
+++ b/macros/src/factory/build_declare_interfaces.rs
@@ -12,10 +12,10 @@ pub fn build_declare_factory_interfaces(
quote! {
syrette::declare_interface!(
syrette::castable_factory::threadsafe::ThreadsafeCastableFactory<
- (std::sync::Arc<syrette::async_di_container::AsyncDIContainer>,),
+ (std::sync::Arc<syrette::AsyncDIContainer>,),
#factory_interface
> -> syrette::interfaces::factory::IThreadsafeFactory<
- (std::sync::Arc<syrette::async_di_container::AsyncDIContainer>,),
+ (std::sync::Arc<syrette::AsyncDIContainer>,),
#factory_interface
>,
async = true
@@ -23,7 +23,7 @@ pub fn build_declare_factory_interfaces(
syrette::declare_interface!(
syrette::castable_factory::threadsafe::ThreadsafeCastableFactory<
- (std::sync::Arc<syrette::async_di_container::AsyncDIContainer>,),
+ (std::sync::Arc<syrette::AsyncDIContainer>,),
#factory_interface
> -> syrette::interfaces::any_factory::AnyThreadsafeFactory,
async = true
@@ -33,17 +33,17 @@ pub fn build_declare_factory_interfaces(
quote! {
syrette::declare_interface!(
syrette::castable_factory::blocking::CastableFactory<
- (std::rc::Rc<syrette::di_container::DIContainer>,),
+ (std::rc::Rc<syrette::DIContainer>,),
#factory_interface
> -> syrette::interfaces::factory::IFactory<
- (std::rc::Rc<syrette::di_container::DIContainer>,),
+ (std::rc::Rc<syrette::DIContainer>,),
#factory_interface
>
);
syrette::declare_interface!(
syrette::castable_factory::blocking::CastableFactory<
- (std::rc::Rc<syrette::di_container::DIContainer>,),
+ (std::rc::Rc<syrette::DIContainer>,),
#factory_interface
> -> syrette::interfaces::any_factory::AnyFactory
);