pub trait AssetManifestExt {
// Required methods
fn load(bin: Option<&str>) -> Self;
fn load_from_path(
bin: Option<&str>,
cargo_toml: PathBuf,
cargo_lock: PathBuf,
) -> Self;
fn copy_static_assets_to(&self, location: impl Into<PathBuf>) -> Result<()>;
fn collect_tailwind_css(
&self,
include_preflight: bool,
warnings: &mut Vec<TailwindWarning>,
) -> String;
}Expand description
An extension trait CLI support for the asset manifest
Required Methods§
Sourcefn load_from_path(
bin: Option<&str>,
cargo_toml: PathBuf,
cargo_lock: PathBuf,
) -> Self
fn load_from_path( bin: Option<&str>, cargo_toml: PathBuf, cargo_lock: PathBuf, ) -> Self
Loads the asset manifest from the cargo toml and lock file
Sourcefn copy_static_assets_to(&self, location: impl Into<PathBuf>) -> Result<()>
fn copy_static_assets_to(&self, location: impl Into<PathBuf>) -> Result<()>
Copies all static assets to the given location
Sourcefn collect_tailwind_css(
&self,
include_preflight: bool,
warnings: &mut Vec<TailwindWarning>,
) -> String
fn collect_tailwind_css( &self, include_preflight: bool, warnings: &mut Vec<TailwindWarning>, ) -> String
Collects all tailwind classes from all assets and outputs the CSS file
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.