Struct tauri_codegen::embedded_assets::EmbeddedAssets [−][src]
pub struct EmbeddedAssets(_);
Expand description
Represent a directory of assets that are compressed and embedded.
This is the compile time generation of tauri_utils::assets::Assets from a directory. Assets
from the directory are added as compiler dependencies by dummy including the original,
uncompressed assets.
The assets are compressed during this runtime, and can only be represented as a TokenStream
through ToTokens. The generated code is meant to be injected into an application to include
the compressed assets in that application’s binary.
Implementations
Compress a directory of assets, ready to be generated into a tauri_utils::assets::Assets.
pub fn load_paths(
paths: Vec<PathBuf>,
options: AssetOptions
) -> Result<Self, EmbeddedAssetsError>
pub fn load_paths(
paths: Vec<PathBuf>,
options: AssetOptions
) -> Result<Self, EmbeddedAssetsError>Compress a list of files and directories.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for EmbeddedAssetsimpl Send for EmbeddedAssetsimpl Sync for EmbeddedAssetsimpl Unpin for EmbeddedAssetsimpl UnwindSafe for EmbeddedAssets