* test build for 0.16.0 * macos 10.15? * format * shorter dir for build on windows? * Update build.yml * move * Update build.yml * long path support * clang * try * try * move to ort rc12 * use ms prebuilt? * use lower version for 1.23.1 * download my prebuilt * Update build.yml * Update build.yml * fix? * fix(nix): use dynamic linking for ort-sys 2.0.0-rc.12 ort-sys rc.12 removed pkg-config support; without ORT_PREFER_DYNAMIC_LINK it defaults to static linking against ORT_LIB_LOCATION, which fails because nixpkgs only provides shared libraries (.so). * fix(nix): override onnxruntime to 1.24.2 for ort-sys rc.12 compatibility ort 2.0.0-rc.12 enables API v24 by default, but nixpkgs only ships onnxruntime 1.23.2 (API v23), causing a runtime panic on model load. Use Microsoft's prebuilt binaries for onnxruntime 1.24.2 via overlay, patched with autoPatchelfHook for NixOS compatibility. This overlay should be removed once nixpkgs merges onnxruntime ≥ 1.24: https://github.com/NixOS/nixpkgs/pull/499389 * updated deps for whisper * fix(nix): sync devShell with packages for ort-sys rc.12 compatibility - Extract shared definitions (commonNativeDeps, gstPlugins, commonEnv, onnxruntimeOverlay) to avoid duplication between packages and devShells - Add onnxruntime 1.24.2 overlay to devShell (was only in packages) - Add BINDGEN_EXTRA_CLANG_ARGS to devShell so bindgen can find stdio.h and generate correct vulkan bindings for whisper-rs-sys - Add ORT_LIB_LOCATION and ORT_PREFER_DYNAMIC_LINK to devShell - Replace libappindicator with libayatana-appindicator in devShell - Add onnxruntime and vulkan-loader to devShell LD_LIBRARY_PATH * fix missing lib in the handy blob dl * scope lib verification * dont run bun2nix on windows --------- Co-authored-by: Evgeny <evgeny.khudoba@yandex.ru>
121 lines
3.6 KiB
TOML
121 lines
3.6 KiB
TOML
[package]
|
|
name = "handy"
|
|
version = "0.7.12"
|
|
description = "Handy"
|
|
authors = ["cjpais"]
|
|
edition = "2021"
|
|
license = "MIT"
|
|
default-run = "handy"
|
|
|
|
[profile.dev]
|
|
incremental = true # Compile your binary in smaller steps.
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[lib]
|
|
# The `_lib` suffix may seem redundant but it is necessary
|
|
# to make the lib name unique and wouldn't conflict with the bin name.
|
|
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
|
|
name = "handy_app_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
# [[bin]]
|
|
# name = "cli"
|
|
# path = "src/audio_toolkit/bin/cli.rs"
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
serde_json = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
|
|
[dependencies]
|
|
once_cell = "1"
|
|
tauri = { version = "2.10.2", features = [
|
|
"protocol-asset",
|
|
"macos-private-api",
|
|
"tray-icon",
|
|
'image-png',
|
|
] }
|
|
tauri-plugin-log = "2.7.1"
|
|
tauri-plugin-opener = "2.5.2"
|
|
tauri-plugin-store = "2.4.1"
|
|
tauri-plugin-os = "2.3.2"
|
|
tauri-plugin-clipboard-manager = "2.3.2"
|
|
tauri-plugin-macos-permissions = "2.3.0"
|
|
tauri-plugin-process = "2.3.1"
|
|
rusqlite_migration = "2.3"
|
|
tauri-plugin-fs = "2.4.4"
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
rdev = { git = "https://github.com/rustdesk-org/rdev" }
|
|
cpal = "0.16.0"
|
|
anyhow = "1.0.95"
|
|
rubato = "0.16.2"
|
|
hound = "3.5.1"
|
|
log = "0.4.25"
|
|
env_filter = "0.1.0"
|
|
tokio = "1.43.0"
|
|
vad-rs = { git = "https://github.com/cjpais/vad-rs", default-features = false }
|
|
enigo = "0.6.1"
|
|
rodio = { git = "https://github.com/cjpais/rodio.git" }
|
|
reqwest = { version = "0.12", features = ["json", "stream"] }
|
|
futures-util = "0.3"
|
|
rustfft = "6.4.0"
|
|
strsim = "0.11.0"
|
|
natural = "0.5.0"
|
|
regex = "1"
|
|
chrono = "0.4"
|
|
rusqlite = { version = "0.37", features = ["bundled"] }
|
|
tar = "0.4.44"
|
|
flate2 = "1.0"
|
|
transcribe-rs = { version = "0.3.2", features = ["whisper-cpp", "onnx"] }
|
|
handy-keys = "0.2.4"
|
|
ferrous-opencc = "0.2.3"
|
|
clap = { version = "4", features = ["derive"] }
|
|
specta = "=2.0.0-rc.22"
|
|
specta-typescript = "0.0.9"
|
|
tauri-specta = { version = "=2.0.0-rc.21", features = ["derive", "typescript"] }
|
|
tauri-plugin-dialog = "2.6"
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
signal-hook = "0.3"
|
|
|
|
[target.'cfg(not(any(target_os = "android", target_os = "ios")))'.dependencies]
|
|
tauri-plugin-autostart = "2.5.1"
|
|
tauri-plugin-global-shortcut = "2.3.1"
|
|
tauri-plugin-single-instance = "2.3.2"
|
|
tauri-plugin-updater = "2.10.0"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
transcribe-rs = { version = "0.3.2", features = ["whisper-vulkan", "ort-directml"] }
|
|
windows = { version = "0.61.3", features = [
|
|
"Win32_Media_Audio_Endpoints",
|
|
"Win32_System_Com_StructuredStorage",
|
|
"Win32_System_Variant",
|
|
"Win32_Foundation",
|
|
"Win32_UI_WindowsAndMessaging",
|
|
] }
|
|
winreg = "0.55"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
tauri-nspanel = { git = "https://github.com/ahkohd/tauri-nspanel", branch = "v2.1" }
|
|
transcribe-rs = { version = "0.3.2", features = ["whisper-metal"] }
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
gtk-layer-shell = { version = "0.8", features = ["v0_6"] }
|
|
gtk = "0.18"
|
|
transcribe-rs = { version = "0.3.2", features = ["whisper-vulkan"] }
|
|
|
|
[patch.crates-io]
|
|
tauri-runtime = { git = "https://github.com/cjpais/tauri.git", branch = "handy-2.10.2" }
|
|
tauri-runtime-wry = { git = "https://github.com/cjpais/tauri.git", branch = "handy-2.10.2" }
|
|
tauri-utils = { git = "https://github.com/cjpais/tauri.git", branch = "handy-2.10.2" }
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
|
|
[profile.release]
|
|
lto = true
|
|
codegen-units = 1
|
|
strip = true
|
|
panic = "unwind"
|