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/errors/async_di_container.rs | 4 ---- src/errors/mod.rs | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src/errors') diff --git a/src/errors/async_di_container.rs b/src/errors/async_di_container.rs index 22d8fdd..8697bc6 100644 --- a/src/errors/async_di_container.rs +++ b/src/errors/async_di_container.rs @@ -1,9 +1,5 @@ //! Error types for [`AsyncDIContainer`] and it's related structs. //! -//! --- -//! -//! *This module is only available if Syrette is built with the "async" feature.* -//! //! [`AsyncDIContainer`]: crate::async_di_container::AsyncDIContainer use crate::errors::injectable::InjectableError; diff --git a/src/errors/mod.rs b/src/errors/mod.rs index c3930b0..a1eb551 100644 --- a/src/errors/mod.rs +++ b/src/errors/mod.rs @@ -1,8 +1,10 @@ //! Error types for various components of the library. +use feature_macros::feature_specific; + pub mod di_container; pub mod injectable; pub mod ptr; -#[cfg(feature = "async")] +#[feature_specific("async")] pub mod async_di_container; -- cgit v1.2.3-18-g5258