diff options
author | HampusM <hampus@hampusmat.com> | 2022-10-02 19:32:25 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-10-02 19:32:25 +0200 |
commit | d8525f169649e4ce7e806e68de5e328135755326 (patch) | |
tree | 4fc573e79c8f3836fada5fdb0851b4740a63c43d /src/errors | |
parent | 31f62ea0c634360030dcf89203268fa5684b5905 (diff) |
refactor: improve management of feature specific items
Diffstat (limited to 'src/errors')
-rw-r--r-- | src/errors/async_di_container.rs | 4 | ||||
-rw-r--r-- | src/errors/mod.rs | 4 |
2 files changed, 3 insertions, 5 deletions
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; |