diff options
author | HampusM <hampus@hampusmat.com> | 2022-07-22 13:25:45 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-07-22 13:25:45 +0200 |
commit | 4cb3884e24b3cba3347ff93475bbabd6fe18d2fa (patch) | |
tree | 2fa5e6d81de9dc39bd11d64797914e5d305d98e2 /macros | |
parent | 157f38bc2287dcb9a8b21ef3d5e33c569dc5136e (diff) |
refactor: make factories an optional feature
Diffstat (limited to 'macros')
-rw-r--r-- | macros/src/lib.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs index ed1a509..73fb2dc 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -12,7 +12,6 @@ mod injectable_macro_args; mod libs; use declare_interface_args::DeclareInterfaceArgs; -use factory_type_alias::FactoryTypeAlias; use injectable_impl::InjectableImpl; use injectable_macro_args::InjectableMacroArgs; use libs::intertrait_macros::gen_caster::generate_caster; @@ -52,7 +51,7 @@ pub fn injectable(args_stream: TokenStream, impl_stream: TokenStream) -> TokenSt #[proc_macro_attribute] pub fn factory(_: TokenStream, type_alias_stream: TokenStream) -> TokenStream { - let FactoryTypeAlias { + let factory_type_alias::FactoryTypeAlias { type_alias, factory_interface, arg_types, @@ -73,7 +72,7 @@ pub fn factory(_: TokenStream, type_alias_stream: TokenStream) -> TokenStream syrette::castable_factory::CastableFactory< #arg_types, #return_type - > -> syrette::castable_factory::AnyFactory + > -> syrette::interfaces::any_factory::AnyFactory ); } .into() |