use syrette::DIContainer; // Concrete implementations use crate::animal_store::AnimalStore; use crate::animals::dog::Dog; use crate::animals::human::Human; // // Interfaces use crate::interfaces::animal_store::IAnimalStore; use crate::interfaces::dog::IDog; use crate::interfaces::human::IHuman; pub fn bootstrap() -> DIContainer { let mut di_container: DIContainer = DIContainer::new(); di_container .bind::() .to_singleton::() .unwrap(); di_container.bind::().to::().unwrap(); di_container .bind::() .to::() .unwrap(); di_container }