From 980bedd54ee4f0d0da3902fc22cfaebdfd3ff1b8 Mon Sep 17 00:00:00 2001 From: HampusM Date: Mon, 1 Aug 2022 18:14:12 +0200 Subject: docs: add factory feature notices --- src/di_container.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/di_container.rs') 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( &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 -- cgit v1.2.3-18-g5258