diff options
author | HampusM <hampus@hampusmat.com> | 2022-08-01 17:44:02 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-08-01 17:44:02 +0200 |
commit | eeef21b0b78aa7970e0ab93f37b3b6bba5391426 (patch) | |
tree | 26450c6d88b9831d619bfc0a8ecf7d43cef3ed91 /macros/src | |
parent | 3383faeaf8342cf4637b6d9a9dfba30b1684edca (diff) |
refactor: limit the factory macro to the factory feature
Diffstat (limited to 'macros/src')
-rw-r--r-- | macros/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs index 7dba7d1..86db787 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -144,6 +144,7 @@ pub fn injectable(args_stream: TokenStream, impl_stream: TokenStream) -> TokenSt /// type IConfiguratorFactory = dyn IFactory<(Vec<String>,), dyn IConfigurator>; /// ``` #[proc_macro_attribute] +#[cfg(feature = "factory")] pub fn factory(_: TokenStream, type_alias_stream: TokenStream) -> TokenStream { let factory_type_alias::FactoryTypeAlias { |