Crate tauri_utils

Source
Expand description

This crate contains common code that is reused in many places and offers useful utilities like parsing configuration files, detecting platform triples, injecting the CSP, and managing assets.

Modules§

acl
Access Control List types.
assets
The Assets module allows you to read files that have been bundled by tauri during both compile time and runtime.
config
The Tauri configuration used at runtime.
html
The module to process HTML in Tauri.
io
IO helpers.
mime_type
Determine a mime type from a URI or file contents.
pattern
Application pattern.
platform
Platform helper functions.
plugin
Compile-time and runtime types for Tauri plugins.

Structs§

Env
Information about environment variables.
PackageInfo
tauri::App package information.

Enums§

Error
The error type of tauri-utils.
Theme
System theme.
TitleBarStyle
How the window title bar should be displayed on macOS.
WindowEffect
Platform-specific window effects
WindowEffectState
Window effect state macOS only

Functions§

display_path
Reconstructs a path from its components using the platform separator then converts it to String and removes UNC prefixes on Windows if it exists.
write_if_changed
Write the file only if the content of the existing file (if any) is different.

Type Aliases§

Result
The result type of tauri-utils.