// use std::sync::Arc; // use applib::DictImporter; // use applib::DictRepository; // use applib::SqliteDictRepository; // use applib::SystemDecoder; // use applib::SystemEncoder; // use applib::sys_major as major; #[derive(Clone)] pub struct Container; impl Container { pub async fn new() -> anyhow::Result { Ok(Self) } // pub async fn create_dict_importer(&self, dict_name: &str) -> anyhow::Result { // let repo = self.create_dict_repo(dict_name).await?; // Ok(DictImporter::new(repo)) // } // pub async fn create_dict_repo( // &self, // dict_name: &str, // ) -> anyhow::Result> { // let mut dict_repo = SqliteDictRepository::new("sqlite:app.db").await?; // dict_repo.use_dict(dict_name); // Ok(Arc::new(dict_repo)) // } }