Expose your app’s assets through a localhost server instead of the default custom protocol.
This plugin requires a Rust version of at least 1.75
Install the localhost plugin to get started.
Use your project’s package manager to add the dependency:
-
Run the following command in the src-tauri
folder to add the plugin to the project’s dependencies in Cargo.toml
:
-
Modify lib.rs
to initialize the plugin:
The localhost plugin is available in Rust.
© 2024 Tauri Contributors. CC-BY / MIT