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§
- Items to help with parsing content into a
Config
.
Structs§
- General configuration for the iOS target.
- The App configuration object.
- Configuration for AppImage bundles.
- Config for the asset custom protocol.
- An extension for a
FileAssociation
. - The Build configuration object.
- Configuration for tauri-bundler.
- A tuple struct of RGBA colors. Each value has minimum of 0 and maximum of 255.
- 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.
- Configuration for Debian (.deb) bundles.
- Deep link protocol configuration.
- Configuration for Apple Disk Image (.dmg) bundles.
- File association
- 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
- General configuration for the iOS target.
- Configuration for Linux bundles.
- Configuration for the macOS bundles.
- Configuration for the Installer bundle using NSIS.
- The plugin configs holds a HashMap mapping a plugin name to its configuration object.
- Position coordinates struct.
- Configuration for RPM bundles.
- Security configuration.
- Size of the window.
- Configuration for application tray icon.
- The window configuration object.
- The window effects configuration object
- Windows bundler configuration.
- Configuration for the MSI bundle using WiX.
- Configuration for a target language for the WiX build.
Enums§
- Describes the shell command to run before
tauri dev
. - Definition for bundle resources. Can be either a list of paths to include or a map of source to target paths.
- Targets to bundle. Each value is case insensitive.
- A bundle referenced by tauri-bundler.
- macOS-only. Corresponds to CFBundleTypeRole
- A capability entry which can be either an inlined capability or a reference to a capability defined on its own file.
- A Content-Security-Policy definition. See https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP.
- A Content-Security-Policy directive source list. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/Sources#sources.
- Custom Signing Command configuration.
- The possible values for the
dangerous_disable_asset_csp_modification
config option. - Defines the URL or assets to embed in the application.
- Protocol scope definition. It is a list of glob patterns that restrict the API access from the webview.
- definition of a header source
- Describes a shell command to be executed when a CLI hook is triggered.
- Install Modes for the NSIS installer.
- Compression algorithms used in the NSIS installer.
- The application pattern.
- Compression algorithms used when bundling RPM packages.
- Updater type
- Generates lagacy zipped v1 compatible updaters
- Install modes for the Webview2 runtime. Note that for the updater bundle
Self::DownloadBootstrapper
is used. - An URL to open on a Tauri webview window.
- The languages to build using WiX.
Traits§
- A trait which implements on the
Builder
of the http create