Cloudish

Ease of Use
Extensibility
Performance
Security
Pros:
  • Similar to a SPA web-app
  • No Rust skills required
Cons:
  • No access to Rust API
  • Uses a localhost server

Description

The Cloudish recipe is a pattern for maximum flexibility and app performance. It uses a localhost server, which means that your app will technically be available to other processes, like browsers and potentially other devices on the network. All of your assets are baked into the binary, but served as if they were distinct files.

Diagram

graph TD H==>F H==>D D-->F F-->D subgraph RUST A==>H end subgraph WEBVIEW F end subgraph SERVER D E-->D end A[Binary] D(( localhost )) E[bundled resources] F[Window] H{Bootstrap} style RUST fill:#fad3a9,stroke:#F28918,stroke-width:4px style WEBVIEW fill:#abd0f9,stroke:#1D81EE,stroke-width:4px style SERVER fill:#49A24A,stroke:#2B6063,stroke-width:4px

Configuration

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

"tauri": {
  "embeddedServer": {
    "active": true                // ship with a localhost server
  },
  "allowlist": {
    "all": false                  // disable entire API
  }
}