#[cfg(feature = "cache")]
mod cache;
#[cfg(feature = "cache")]
mod model_ref;
mod prefabs;
mod providers;
mod weights;
#[cfg(feature = "cache")]
#[doc(inline)]
pub use cache::*;
#[cfg(feature = "cache")]
#[doc(inline)]
pub use model_ref::*;
#[doc(inline)]
pub use prefabs::*;
#[doc(inline)]
pub use providers::*;
#[doc(inline)]
pub use weights::*;
pub(crate) fn not_found(
table: Option<&str>,
kind: &str,
name: &str,
names: &[&str],
) -> crate::errors::BunsenError {
let table = table.map(|t| alloc::format!("{t}: ")).unwrap_or_default();
let names = if names.is_empty() {
alloc::string::String::from("(none)")
} else {
names.join(", ")
};
crate::errors::BunsenError::ResourceNotFound(alloc::format!(
"{table}no {kind} {name:?}; there are: {names}"
))
}