aboutsummaryrefslogtreecommitdiff
path: root/src/di_container
diff options
context:
space:
mode:
Diffstat (limited to 'src/di_container')
-rw-r--r--src/di_container/asynchronous.rs (renamed from src/di_container/asynchronous/mod.rs)0
-rw-r--r--src/di_container/asynchronous/binding.rs (renamed from src/di_container/asynchronous/binding/mod.rs)0
-rw-r--r--src/di_container/blocking.rs (renamed from src/di_container/blocking/mod.rs)0
-rw-r--r--src/di_container/blocking/binding.rs (renamed from src/di_container/blocking/binding/mod.rs)0
-rw-r--r--src/di_container/mod.rs43
5 files changed, 0 insertions, 43 deletions
diff --git a/src/di_container/asynchronous/mod.rs b/src/di_container/asynchronous.rs
index c993b8b..c993b8b 100644
--- a/src/di_container/asynchronous/mod.rs
+++ b/src/di_container/asynchronous.rs
diff --git a/src/di_container/asynchronous/binding/mod.rs b/src/di_container/asynchronous/binding.rs
index 6a09bff..6a09bff 100644
--- a/src/di_container/asynchronous/binding/mod.rs
+++ b/src/di_container/asynchronous/binding.rs
diff --git a/src/di_container/blocking/mod.rs b/src/di_container/blocking.rs
index d8b0d59..d8b0d59 100644
--- a/src/di_container/blocking/mod.rs
+++ b/src/di_container/blocking.rs
diff --git a/src/di_container/blocking/binding/mod.rs b/src/di_container/blocking/binding.rs
index 6a09bff..6a09bff 100644
--- a/src/di_container/blocking/binding/mod.rs
+++ b/src/di_container/blocking/binding.rs
diff --git a/src/di_container/mod.rs b/src/di_container/mod.rs
deleted file mode 100644
index 4e60505..0000000
--- a/src/di_container/mod.rs
+++ /dev/null
@@ -1,43 +0,0 @@
-//! Dependency injection container types.
-
-#[cfg(feature = "async")]
-#[cfg_attr(doc_cfg, doc(cfg(feature = "async")))]
-pub mod asynchronous;
-
-pub mod blocking;
-
-/// DI container binding options.
-///
-/// # Examples
-/// ```
-/// # use syrette::di_container::BindingOptions;
-/// #
-/// BindingOptions::new().name("foo");
-/// ```
-#[derive(Debug, Default, Clone, PartialEq, Eq, Hash)]
-pub struct BindingOptions<'a>
-{
- name: Option<&'a str>,
-}
-
-impl<'a> BindingOptions<'a>
-{
- /// Returns a new `BindingOptions`.
- #[must_use]
- pub const fn new() -> Self
- {
- Self { name: None }
- }
-
- /// Returns `Self` with the specified name set.
- #[must_use]
- pub const fn name(mut self, name: &'a str) -> Self
- {
- self.name = Some(name);
-
- self
- }
-}
-
-// Private.
-pub(crate) mod binding_storage;