aboutsummaryrefslogtreecommitdiff
path: root/examples/unbound/main.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2023-08-17 22:04:17 +0200
committerHampusM <hampus@hampusmat.com>2023-08-17 22:04:17 +0200
commit8aeb7ad439b67228a0abc46b259967e8c91f8a97 (patch)
treed7758a573c0bc805b0fe42cdd18df628109c5ffd /examples/unbound/main.rs
parent800e164a83388aa5ca7675f8031b0f0d7c6b6051 (diff)
docs: remove the 'unbound' example
This was not at all a useful example
Diffstat (limited to 'examples/unbound/main.rs')
-rw-r--r--examples/unbound/main.rs32
1 files changed, 0 insertions, 32 deletions
diff --git a/examples/unbound/main.rs b/examples/unbound/main.rs
deleted file mode 100644
index 29fa0d4..0000000
--- a/examples/unbound/main.rs
+++ /dev/null
@@ -1,32 +0,0 @@
-#![deny(clippy::all)]
-#![deny(clippy::pedantic)]
-#![allow(clippy::module_name_repetitions)]
-
-mod animal_store;
-mod animals;
-mod bootstrap;
-mod interfaces;
-
-use anyhow::Result;
-use syrette::di_container::blocking::prelude::*;
-
-use crate::bootstrap::bootstrap;
-use crate::interfaces::dog::IDog;
-use crate::interfaces::human::IHuman;
-
-fn main() -> Result<()>
-{
- println!("Hello, world!");
-
- let di_container = bootstrap()?;
-
- let dog = di_container.get::<dyn IDog>()?.singleton()?;
-
- dog.woof();
-
- let human = di_container.get::<dyn IHuman>()?.transient()?;
-
- human.make_pets_make_sounds();
-
- Ok(())
-}