use std::sync::Arc; use anyhow::Result; use syrette::async_di_container::AsyncDIContainer; // Concrete implementations use crate::animals::cat::Cat; use crate::animals::dog::Dog; use crate::animals::human::Human; // // Interfaces use crate::interfaces::cat::ICat; use crate::interfaces::dog::IDog; use crate::interfaces::human::IHuman; pub async fn bootstrap() -> Result> { let mut di_container = AsyncDIContainer::new(); di_container .bind::() .to::() .await? .in_singleton_scope() .await?; di_container.bind::().to::().await?; di_container.bind::().to::().await?; Ok(di_container) }