Cloudish
易用性 | |
拓展性 | |
性能 | |
安全性 |
![Cloudish](/tauri-docs/img/patterns/Cloudish.png)
优点
- 和一个单页应用一样
- 不需要 Rust 技能
- 无法访问 Rust API
- 使用本地服务器
#
说明The Cloudish recipe is a pattern for maximum flexibility and app 性能. 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.
#
示意图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
#
配置这是你需要在你的 tauri.conf.json 中添加的配置:
"tauri": {
"allowlist": {
"all": false // disable entire API
}
}