budget-app/budget-capture/Cargo.toml

42 lines
1.8 KiB
TOML

[package]
name = "budget-capture"
version.workspace = true
edition.workspace = true
publish.workspace = true
description = "Native budget capture capabilities, permission routing and Android tile/overlay backend"
build = "src/build.rs"
[target.'cfg(target_os = "android")'.dependencies]
jni = { version = "0.21.1", default-features = false }
# Budget's Makepad backend initializes makepad-android-state, not ndk-context.
# Select the provider explicitly rather than relying on another crate's features.
robius-android-env = { version = "0.2.0", default-features = false, features = ["makepad"] }
[dependencies]
ocrs = { version = "=0.13.1", default-features = false, features = ["onnx"] }
rten = { version = "=0.26.0", default-features = false, features = ["onnx_format"] }
[build-dependencies]
android-build = "=0.1.2"
sha2 = "0.10"
[dev-dependencies]
image = { version = "0.25", default-features = false, features = ["png"] }
# Desktop-only dependencies must never leak into Android or HarmonyOS/OHOS.
[target.'cfg(any(target_os = "windows", target_os = "macos", all(target_os = "linux", not(target_env = "ohos"))))'.dependencies]
xcap = "=0.9.8"
image = { version = "0.25", default-features = false }
tray-icon = { version = "=0.26.1", default-features = false }
[target.'cfg(all(target_os = "linux", not(target_env = "ohos")))'.dependencies]
tray-icon = { version = "=0.26.1", default-features = false, features = ["ksni"] }
ashpd = { version = "=0.13.13", default-features = false, features = ["async-io", "screencast"] }
futures-lite = "2"
async-io = "2"
pipewire = "0.10"
zbus = { version = "5", default-features = false, features = ["async-io"] }
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = "0.6"
objc2-app-kit = { version = "0.3", default-features = false, features = ["NSApplication", "NSResponder", "NSWindow"] }