mirror of
https://github.com/unslothai/unsloth.git
synced 2026-08-23 15:53:46 +00:00
WebKitGTK ships two defaults that together block voice dictation on Ubuntu/Linux builds: enable-media-stream is off, and the stock permission-request handler denies every request that has no listener override, including UserMediaPermissionRequest. Neither can be fixed from outside the embedding application, so opt in from the Tauri setup hook: enable enable-media-stream on the webview settings and auto-allow only user-media permission requests, leaving every other permission kind on WebKitGTK's default deny.
76 lines
2.5 KiB
TOML
76 lines
2.5 KiB
TOML
[package]
|
|
name = "unsloth-studio"
|
|
# Placeholder, not the released app version. release-desktop.yml rewrites this
|
|
# field (and the unsloth-studio entry in Cargo.lock) to the dispatched
|
|
# studio_version before every release build, so editing it here changes nothing
|
|
# that ships. tauri.conf.json declares no version of its own, which is why the
|
|
# app version comes from this field rather than from there. The stale CalVer
|
|
# below is also the wrong shape: release builds always write SemVer, e.g. 0.1.52-beta.
|
|
version = "2026.4.8"
|
|
description = "Unsloth Desktop App"
|
|
authors = ["Unsloth AI"]
|
|
edition = "2021"
|
|
# std::fs::File::lock, used for the desktop ownership id.
|
|
rust-version = "1.89"
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = ["tray-icon"] }
|
|
tauri-plugin-single-instance = { version = "2", features = ["deep-link"] }
|
|
tauri-plugin-autostart = "2"
|
|
tauri-plugin-deep-link = "2"
|
|
tauri-plugin-process = "2"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
base64 = "0.23"
|
|
hmac = "0.13"
|
|
sha2 = "0.11"
|
|
reqwest = { version = "0.13", features = ["json"] }
|
|
tokio = { version = "1", features = ["full"] }
|
|
log = "0.4"
|
|
simplelog = "0.12"
|
|
dirs = "6"
|
|
regex = "1"
|
|
open = "5"
|
|
process-wrap = { version = "9", features = ["std"] }
|
|
fix-path-env = { git = "https://github.com/tauri-apps/fix-path-env-rs" }
|
|
tauri-plugin-opener = "2.5.4"
|
|
tauri-plugin-updater = "2"
|
|
tauri-plugin-clipboard-manager = "2"
|
|
arboard = "3.6.1"
|
|
tauri-plugin-dialog = "2"
|
|
rand = "0.10.0"
|
|
tauri-plugin-notification = "2.3.3"
|
|
tempfile = "3"
|
|
tauri-plugin-window-state = "2"
|
|
time = { version = "0.3", features = ["formatting"] }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
signal-hook = "0.4"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
objc2 = "0.6"
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
gdk = "0.18"
|
|
gdk-pixbuf = "0.18"
|
|
glib = "0.18"
|
|
gtk = "0.18"
|
|
elevated-command = "1.1.2"
|
|
webkit2gtk-sys = "2.0.2"
|
|
webkit2gtk = "2.0.2"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
# Keep these versions aligned with Tauri's WebView2 controller bindings.
|
|
webview2-com = "0.38"
|
|
winreg = "0.55"
|
|
windows = { version = "0.62.2", features = ["Win32_System_Threading"] }
|
|
windows-core = "0.61.2"
|
|
windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_Globalization", "Win32_Security", "Win32_Storage_FileSystem", "Win32_System_Console", "Win32_System_Diagnostics_ToolHelp", "Win32_System_JobObjects", "Win32_System_Threading", "Win32_UI_Input_KeyboardAndMouse"] }
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[features]
|
|
default = ["custom-protocol"]
|
|
custom-protocol = ["tauri/custom-protocol"]
|