mirror of
https://github.com/block/buzz.git
synced 2026-08-18 06:50:31 +02:00
1. Task leak: add watch::channel shutdown signal to WatcherRuntime so the debounce loop exits when stop_file_watcher drops the runtime. Adds tokio 'macros' feature for select!. 2. ID collision: use crypto.randomUUID() for synthetic diff message IDs instead of seconds-precision timestamps that collide on rapid writes. 3. Channel switch cleanup: call stopFileWatcher in the useEffect cleanup so navigating away stops the backend watcher. Also converts the pointless dynamic import to a static import.
69 lines
2.0 KiB
TOML
69 lines
2.0 KiB
TOML
[package]
|
|
name = "sprout"
|
|
version = "0.1.0"
|
|
description = "Sprout desktop app"
|
|
authors = ["you"]
|
|
edition = "2021"
|
|
|
|
# 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 = "sprout_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2"
|
|
|
|
[target.'cfg(windows)'.dependencies]
|
|
windows-sys = { version = "0.61", features = ["Win32_Storage_FileSystem"] }
|
|
|
|
[dependencies]
|
|
atomic-write-file = "0.3"
|
|
dirs = "6"
|
|
tauri = { version = "2", features = [] }
|
|
tauri-plugin-opener = "2"
|
|
tauri-plugin-window-state = "2"
|
|
tauri-plugin-websocket = "2"
|
|
tauri-plugin-dialog = "2"
|
|
tauri-plugin-updater = "2"
|
|
tauri-plugin-process = "2"
|
|
infer = "0.19"
|
|
hex = "0.4"
|
|
tokio = { version = "1", features = ["fs", "sync", "rt", "macros"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
nostr = "0.37"
|
|
reqwest = { version = "0.13", features = ["json", "query"] }
|
|
url = "2"
|
|
sprout-core = { path = "../../crates/sprout-core" }
|
|
sprout-persona = { path = "../../crates/sprout-persona" }
|
|
base64 = "0.22"
|
|
sha2 = "0.11"
|
|
tar = "0.4"
|
|
bzip2 = "0.5"
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
tauri-plugin-global-shortcut = "2"
|
|
tauri-plugin-notification = "2.3.3"
|
|
uuid = { version = "1", features = ["v4"] }
|
|
png = "0.18"
|
|
zip = "2"
|
|
notify = { version = "7", default-features = false, features = ["macos_fsevent"] }
|
|
similar = "2"
|
|
sherpa-onnx = "1.12"
|
|
ort = { version = "=2.0.0-rc.12", default-features = false, features = ["std", "ndarray", "tracing", "download-binaries", "tls-native", "copy-dylibs", "api-23", "coreml"] }
|
|
ndarray = { version = "0.17", features = ["rayon"] }
|
|
regex = "1"
|
|
rodio = "0.22"
|
|
earshot = "1.0"
|
|
rubato = "2.0"
|
|
audioadapter-buffers = "3.0"
|
|
tempfile = "3"
|
|
|
|
[dev-dependencies]
|