From d8525f169649e4ce7e806e68de5e328135755326 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 2 Oct 2022 19:32:25 +0200 Subject: refactor: improve management of feature specific items --- src/interfaces/async_injectable.rs | 2 -- src/interfaces/mod.rs | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/interfaces') diff --git a/src/interfaces/async_injectable.rs b/src/interfaces/async_injectable.rs index 07a21aa..69c2a47 100644 --- a/src/interfaces/async_injectable.rs +++ b/src/interfaces/async_injectable.rs @@ -1,6 +1,4 @@ //! Interface for structs that can be injected into or be injected to. -//! -//! *This module is only available if Syrette is built with the "async" feature.* use std::fmt::Debug; use std::sync::Arc; diff --git a/src/interfaces/mod.rs b/src/interfaces/mod.rs index a69da5b..65bac12 100644 --- a/src/interfaces/mod.rs +++ b/src/interfaces/mod.rs @@ -1,5 +1,7 @@ //! Various useful interfaces. +use feature_macros::feature_specific; + pub mod injectable; #[cfg(feature = "factory")] @@ -10,5 +12,5 @@ pub mod any_factory; #[doc(hidden)] pub mod factory; -#[cfg(feature = "async")] +#[feature_specific("async")] pub mod async_injectable; -- cgit v1.2.3-18-g5258