From b4ddc1e626fbd11d784b442d246ddc5f54c35b51 Mon Sep 17 00:00:00 2001 From: HampusM Date: Fri, 4 Aug 2023 17:38:00 +0200 Subject: refactor!: rename the async flag of the declare_interface macro BREAKING CHANGE: The flag 'async' of the declare_interface macro has been renamed to 'threadsafe_sharable'. The reason being that the name 'async' was an outright lie. The new name describes exactly what the flag enables --- macros/src/factory/build_declare_interfaces.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'macros/src/factory') diff --git a/macros/src/factory/build_declare_interfaces.rs b/macros/src/factory/build_declare_interfaces.rs index 038d29d..e4fc01b 100644 --- a/macros/src/factory/build_declare_interfaces.rs +++ b/macros/src/factory/build_declare_interfaces.rs @@ -18,7 +18,7 @@ pub fn build_declare_factory_interfaces( (std::sync::Arc,), #factory_interface >, - async = true + threadsafe_sharable = true ); syrette::declare_interface!( @@ -26,7 +26,7 @@ pub fn build_declare_factory_interfaces( (std::sync::Arc,), #factory_interface > -> syrette::private::any_factory::AnyThreadsafeFactory, - async = true + threadsafe_sharable = true ); } } else { -- cgit v1.2.3-18-g5258