46 lines
1.5 KiB
TOML
46 lines
1.5 KiB
TOML
[package]
|
|
name = "llembas-desktop"
|
|
version = "1.0.0-beta.7"
|
|
description = "LLeMbas Desktop: the agent on this computer and your LLeMbas server's chats, in an app of its own"
|
|
authors = ["Jaroslav Beneš"]
|
|
license = "MIT"
|
|
repository = "https://github.com/LLeMbas/LLeMbas-Desktop"
|
|
homepage = "https://llembas.eu"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
# The library holds the app; main.rs only starts it (the shape Tauri expects for mobile too).
|
|
name = "llembas_desktop_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[dependencies]
|
|
tauri = { version = "2.12", features = ["tray-icon"] }
|
|
tauri-plugin-dialog = "2"
|
|
tauri-plugin-notification = "2"
|
|
tauri-plugin-opener = "2"
|
|
tauri-plugin-single-instance = "2"
|
|
tauri-plugin-updater = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
ureq = { version = "2", default-features = false, features = ["tls", "native-certs", "json"] }
|
|
# The terminal panel's socket (`terminal.rs`): a blocking WebSocket on the TLS ureq already brings.
|
|
tungstenite = { version = "0.30", default-features = false, features = ["handshake", "rustls-tls-native-roots"] }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
# The webview's own settings: getUserMedia is off in WebKitGTK until the app turns it on.
|
|
# The same crate and version wry already builds on.
|
|
webkit2gtk = { version = "2.0", features = ["v2_4"] }
|
|
|
|
[profile.release]
|
|
codegen-units = 1
|
|
lto = true
|
|
opt-level = "s"
|
|
panic = "abort"
|
|
strip = true
|