AssetManifestExt

Trait AssetManifestExt 

Source
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§

Source

fn load(bin: Option<&str>) -> Self

Loads the asset manifest for the current working directory

Source

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

Source

fn copy_static_assets_to(&self, location: impl Into<PathBuf>) -> Result<()>

Copies all static assets to the given location

Source

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.

Implementors§