diff options
author | HampusM <hampus@hampusmat.com> | 2022-09-24 17:31:16 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-09-24 17:33:10 +0200 |
commit | fdd7f824fd1244226ca86f525f8439744676688f (patch) | |
tree | 073019e506e36578caeab894835ccf51dc5d7584 /macros/src/factory | |
parent | febfb927b27ab03041500b16c65bdbc0624a5a72 (diff) |
feat: add bind async default factories to async DI container
Diffstat (limited to 'macros/src/factory')
-rw-r--r-- | macros/src/factory/build_declare_interfaces.rs | 2 | ||||
-rw-r--r-- | macros/src/factory/declare_default_args.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/macros/src/factory/build_declare_interfaces.rs b/macros/src/factory/build_declare_interfaces.rs index ac4ddd6..61e162f 100644 --- a/macros/src/factory/build_declare_interfaces.rs +++ b/macros/src/factory/build_declare_interfaces.rs @@ -14,7 +14,7 @@ pub fn build_declare_factory_interfaces( syrette::castable_factory::threadsafe::ThreadsafeCastableFactory< (std::sync::Arc<syrette::async_di_container::AsyncDIContainer>,), #factory_interface - > -> syrette::interfaces::factory::IFactory< + > -> syrette::interfaces::factory::IThreadsafeFactory< (std::sync::Arc<syrette::async_di_container::AsyncDIContainer>,), #factory_interface >, diff --git a/macros/src/factory/declare_default_args.rs b/macros/src/factory/declare_default_args.rs index 6450583..d19eba8 100644 --- a/macros/src/factory/declare_default_args.rs +++ b/macros/src/factory/declare_default_args.rs @@ -5,7 +5,7 @@ use syn::{Token, Type}; use crate::macro_flag::MacroFlag; use crate::util::iterator_ext::IteratorExt; -pub const FACTORY_MACRO_FLAGS: &[&str] = &["threadsafe"]; +pub const FACTORY_MACRO_FLAGS: &[&str] = &["threadsafe", "async"]; pub struct DeclareDefaultFactoryMacroArgs { |