A personal assistant that lives on your desktop, remembers what matters, and can use your Mac for you.
TypeScript
[package]
name = "gentle-dot"
version = "0.1.0"
description = "Gentle Dot desktop shell"
edition = "2021"
publish = false
[lib]
name = "gentle_dot_lib"
crate-type = ["rlib"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = ["tray-icon", "image-png", "macos-private-api"] }
tauri-plugin-global-shortcut = "2"
tauri-plugin-autostart = "2"
tauri-plugin-opener = "2"
tauri-plugin-dialog = "2"
tauri-plugin-single-instance = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
libc = "0.2"
getrandom = "0.3"
base64 = "0.22"
tiny_http = "0.12"
image = { version = "0.25", default-features = false, features = ["jpeg"] }
# The optional local voice model (S30.5): Parakeet through sherpa-onnx, linked statically (its
# build script downloads the prebuilt static libraries from the sherpa-onnx GitHub release unless
# SHERPA_ONNX_LIB_DIR or SHERPA_ONNX_ARCHIVE_DIR points at a local copy). The model itself is
# downloaded only when the user asks, over HTTPS, checked against a pinned SHA-256, and unpacked.
sherpa-onnx = "1.13.8"
ureq = { version = "2.12", default-features = false, features = ["tls", "proxy-from-env"] }
sha2 = "0.10"
tar = { version = "0.4", default-features = false }
bzip2 = "0.6"
# Private daemon transport/lifecycle (T1); pinned to the version already in Cargo.lock.
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "=0.61.2", features = ["Win32_Foundation", "Win32_Globalization", "Win32_Security", "Win32_Security_Authorization", "Win32_Security_Cryptography", "Win32_UI_Shell", "Win32_System_Com", "Win32_System_Diagnostics_ToolHelp", "Win32_Storage_FileSystem", "Win32_System_Pipes", "Win32_System_Threading", "Win32_System_JobObjects", "Win32_System_IO", "Win32_System_Registry", "Win32_UI_Controls", "Win32_Graphics_Dwm", "Win32_Graphics_Gdi", "Win32_UI_HiDpi", "Win32_UI_Input_KeyboardAndMouse", "Win32_UI_WindowsAndMessaging"] }
# Voice capture through WASAPI and computer control through UI Automation, shell links, and window
# properties (a minimized Store app's name): COM interfaces windows-sys does not bind; the version
# Tauri already uses.
windows = { version = "=0.62.2", features = ["Win32_Media_Audio", "Win32_System_Com", "Win32_System_Com_StructuredStorage", "Win32_Storage_FileSystem", "Win32_System_Variant", "Win32_UI_Accessibility", "Win32_UI_Shell", "Win32_UI_Shell_PropertiesSystem"] }
# The computer-control helper (S24) is macOS only.
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.6"
block2 = "0.6"
objc2-foundation = { version = "0.3", default-features = false, features = ["std", "block2", "NSArray", "NSDictionary", "NSError", "NSLocale", "NSNotification", "NSOperation", "NSSet", "NSString", "NSValue"] }
objc2-core-foundation = { version = "0.3", default-features = false, features = ["std", "CFArray", "CFCGTypes", "CFData", "CFDictionary", "CFNumber", "CFString"] }
objc2-core-graphics = { version = "0.3", default-features = false, features = ["std", "CGDataProvider", "CGDirectDisplay", "CGError", "CGEvent", "CGEventTypes", "CGImage", "CGRemoteOperation", "CGWindow"] }
objc2-app-kit = { version = "0.3", default-features = false, features = ["std", "libc", "NSAlert", "NSApplication", "NSButton", "NSControl", "NSResponder", "NSRunningApplication", "NSView", "NSWorkspace"] }
objc2-application-services = { version = "0.3", default-features = false, features = ["std", "libc", "AXError", "AXUIElement", "AXValue", "HIServices"] }
objc2-screen-capture-kit = { version = "0.3", default-features = false, features = ["std", "block2", "libc", "objc2-core-foundation", "objc2-core-graphics", "SCScreenshotManager", "SCShareableContent", "SCStream"] }
# Voice input (S30.1): the Speech framework, the audio engine, and the microphone permission.
objc2-speech = { version = "0.3", default-features = false, features = ["std", "block2", "objc2-avf-audio", "SFSpeechRecognizer", "SFSpeechRecognitionRequest", "SFSpeechRecognitionResult", "SFSpeechRecognitionTask", "SFTranscription"] }
objc2-avf-audio = { version = "0.3", default-features = false, features = ["std", "block2", "AVAudioBuffer", "AVAudioEngine", "AVAudioFormat", "AVAudioIONode", "AVAudioNode", "AVAudioTime", "AVAudioTypes"] }
objc2-av-foundation = { version = "0.3", default-features = false, features = ["std", "block2", "AVCaptureDevice", "AVMediaFormat"] }
# Connector secrets (S25.5): generic password items in the login keychain, created by the app.
security-framework = "3.7"
core-foundation = "0.10"
# Connector secrets on Linux (S25.7): the Secret Service over D-Bus. Synchronous, and its `dbus`
# dependency is already linked by tao on Linux.
[target.'cfg(target_os = "linux")'.dependencies]
dbus-secret-service = "4.1"
# The store's tests build D-Bus errors (the same `dbus` that dbus-secret-service uses).
[target.'cfg(target_os = "linux")'.dev-dependencies]
dbus = "0.9"
# Debug builds encode screenshots fast too (S24.8): `image` holds the JPEG encoder and `zune-*`
# decode JPEGs (tests). The encoder is generic, so most of its code is compiled in this crate,
# which gets opt-level 1 as well (measured on a 1280 × 800 encode: 200 ms unoptimized, 126 ms
# with the dependencies optimized, 40 ms with this crate at 1). Other dependencies are untouched.
[profile.dev.package.image]
opt-level = 3
[profile.dev.package.zune-jpeg]
opt-level = 3
[profile.dev.package.zune-core]
opt-level = 3
[profile.dev.package.gentle-dot]
opt-level = 1
# Installing the local voice model (S30.5) hashes a 487 MB download and unpacks 640 MB from
# bzip2; unoptimized, that alone took 90 s on an M-series Mac.
[profile.dev.package.libbz2-rs-sys]
opt-level = 3
[profile.dev.package.sha2]
opt-level = 3