Expand description
The Tauri configuration used at runtime.
It is pulled from a tauri.conf.json
file and the Config
struct is generated at compile time.
§Stability
This is a core functionality that is not considered part of the stable API. If you use it, note that it may include breaking changes in the future.
These items are intended to be non-breaking from a de/serialization standpoint only. Using and modifying existing config values will try to avoid breaking changes, but they are free to add fields in the future - causing breaking changes for creating and full destructuring.
To avoid this, ignore unknown fields when destructuring with the {my, config, ..}
pattern.
If you need to create the Rust config directly without deserializing, then create the struct
the Struct Update Syntax with ..Default::default()
, which may need a
#[allow(clippy::needless_update)]
attribute if you are declaring all fields.
Re-exports§
pub use self::parse::parse;
Modules§
Structs§
- Android
Config - General configuration for the Android target.
- AppConfig
- The App configuration object.
- AppImage
Config - Configuration for AppImage bundles.
- Asset
Protocol Config - Config for the asset custom protocol.
- Association
Ext - An extension for a
FileAssociation
. - Build
Config - The Build configuration object.
- Bundle
Config - Configuration for tauri-bundler.
- Color
- A tuple struct of RGBA colors. Each value has minimum of 0 and maximum of 255.
- Config
- The Tauri configuration object. It is read from a file where you can define your frontend assets, configure the bundler and define a tray icon.
- DebConfig
- Configuration for Debian (.deb) bundles.
- Deep
Link Protocol - Deep link protocol configuration.
- DmgConfig
- Configuration for Apple Disk Image (.dmg) bundles.
- File
Association - File association
- Header
Config - A struct, where the keys are some specific http header names. If the values to those keys are defined, then they will be send as part of a response message. This does not include error messages and ipc messages
- IosConfig
- General configuration for the iOS target.
- Linux
Config - Configuration for Linux bundles.
- MacConfig
- Configuration for the macOS bundles.
- Nsis
Config - Configuration for the Installer bundle using NSIS.
- Plugin
Config - The plugin configs holds a HashMap mapping a plugin name to its configuration object.
- Position
- Position coordinates struct.
- RpmConfig
- Configuration for RPM bundles.
- Security
Config - Security configuration.
- Size
- Size of the window.
- Tray
Icon Config - Configuration for application tray icon.
- Window
Config - The window configuration object.
- Window
Effects Config - The window effects configuration object
- Windows
Config - Windows bundler configuration.
- WixConfig
- Configuration for the MSI bundle using WiX.
- WixLanguage
Config - Configuration for a target language for the WiX build.
Enums§
- Background
Throttling Policy - Background throttling policy.
- Before
DevCommand - Describes the shell command to run before
tauri dev
. - Bundle
Resources - Definition for bundle resources. Can be either a list of paths to include or a map of source to target paths.
- Bundle
Target - Targets to bundle. Each value is case insensitive.
- Bundle
Type - A bundle referenced by tauri-bundler.
- Bundle
Type Role - macOS-only. Corresponds to CFBundleTypeRole
- Capability
Entry - A capability entry which can be either an inlined capability or a reference to a capability defined on its own file.
- Csp
- A Content-Security-Policy definition. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP.
- CspDirective
Sources - A Content-Security-Policy directive source list. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/Sources#sources.
- Custom
Sign Command Config - Custom Signing Command configuration.
- Disabled
CspModification Kind - The possible values for the
dangerous_disable_asset_csp_modification
config option. - Frontend
Dist - Defines the URL or assets to embed in the application.
- FsScope
- Protocol scope definition. It is a list of glob patterns that restrict the API access from the webview.
- Header
Source - definition of a header source
- Hook
Command - Describes a shell command to be executed when a CLI hook is triggered.
- NSIS
Installer Mode - Install Modes for the NSIS installer.
- Nsis
Compression - Compression algorithms used in the NSIS installer.
- Pattern
Kind - The application pattern.
- RpmCompression
- Compression algorithms used when bundling RPM packages.
- Updater
- Updater type
- V1Compatible
- Generates lagacy zipped v1 compatible updaters
- Webview
Install Mode - Install modes for the Webview2 runtime.
Note that for the updater bundle
Self::DownloadBootstrapper
is used. - Webview
Url - An URL to open on a Tauri webview window.
- WixLanguage
- The languages to build using WiX.
Traits§
- Header
Addition - A trait which implements on the
Builder
of the http create