aboutsummaryrefslogtreecommitdiff
path: root/src/di_container.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/di_container.rs')
-rw-r--r--src/di_container.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/di_container.rs b/src/di_container.rs
index 89bbcd1..9509bd8 100644
--- a/src/di_container.rs
+++ b/src/di_container.rs
@@ -126,6 +126,8 @@ where
/// Creates a binding of factory type `Interface` to a factory inside of the
/// associated [`DIContainer`].
+ ///
+ /// *This function is only available if Syrette is built with the "factory" feature.*
#[cfg(feature = "factory")]
pub fn to_factory<Args, Return>(
&mut self,
@@ -228,6 +230,8 @@ impl DIContainer
/// Returns the factory bound with factory type `Interface`.
///
+ /// *This function is only available if Syrette is built with the "factory" feature.*
+ ///
/// # Errors
/// Will return `Err` if:
/// - No binding for `Interface` exists