use std::error::Error; 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() -> Result> { let mut di_container: DIContainer = DIContainer::new(); di_container .bind::() .to::()? .in_singleton_scope()?; di_container.bind::().to::()?; di_container .bind::() .to::()?; Ok(di_container) }