Hermit

Ease of Use
Extensibility
Performance
Security
Pros:
  • Quick to make
  • Smallest size
Cons:
  • No remote resources
  • No access to API

Description

The Hermit recipe is a pattern for ultimate application isolation where all logic is self-contained in the Window and the binary exists merely to bootstrap the Window. There is no communication back to Rust from the Window, there is no localhost server, and the Window has no access to any remote resources. The Hermit is great for interactive Kiosk Mode and standalone HTML based games.

Diagram

graph LR A==>H H==>F subgraph WEBVIEW F end subgraph RUST A end A[fa:fa-cog Binary ] F[fa:fa-window-maximize Window] H{Bootstrap} style RUST fill:#fad3a9,stroke:#F28918,stroke-width:4px style WEBVIEW fill:#abd0f9,stroke:#1D81EE,stroke-width:4px

Configuration

Here's what you need to add to your tauri.conf.json file:

"tauri": {
  "embeddedServer": {
    "active": false     // do not use a localhost server
  },
  "whitelist": {
    "all": false,       // disable and tree-shake all api functions
  }
}