use {std::path::Path, uuid::Uuid};
pub use eyre;
pub trait Registry {
fn store(
&mut self,
source: &Path,
source_format: &str,
native_format: &str,
tags: &[&str],
) -> eyre::Result<Uuid>;
fn fetch(&mut self, asset: &Uuid) -> eyre::Result<Box<Path>>;
}
pub trait Importer: Send + Sync {
fn name(&self) -> &str;
fn source(&self) -> &str;
fn native(&self) -> &str;
fn import(
&self,
source_path: &Path,
native_path: &Path,
registry: &mut dyn Registry,
) -> eyre::Result<()>;
}