#[cfg(any(not(debug_assertions), feature = "debug-prod"))]
#[derive(Debug, Clone)]
pub struct ViteFile {
pub bytes: ::std::borrow::Cow<'static, [u8]>,
pub last_modified: Option<&'static str>,
pub content_type: &'static str,
pub content_length: u64,
#[cfg(feature = "content-hash")]
pub content_hash: &'static str,
}
#[cfg(any(not(debug_assertions), feature = "debug-prod"))]
pub trait GetFromVite: Send + Sync + 'static {
fn get(&self, file_path: &str) -> Option<ViteFile>;
fn clone_box(&self) -> Box<dyn GetFromVite>;
}
#[cfg(all(debug_assertions, not(feature = "debug-prod")))]
#[derive(Debug, Clone)]
pub struct ViteFile {
pub bytes: Vec<u8>,
pub last_modified: Option<String>,
pub content_type: String,
pub content_length: u64,
#[cfg(feature = "content-hash")]
pub content_hash: String,
}
#[cfg(all(debug_assertions, not(feature = "debug-prod")))]
pub trait GetFromVite: Send + Sync + 'static {
fn get(&self, file_path: &str) -> Option<ViteFile>;
fn clone_box(&self) -> Box<dyn GetFromVite>;
}