universal-android-debloater.../crates/uad-core/Cargo.toml
Angel J 16a0217b7f
feat(adb): use direct USB for built-in backend
Replace the server-based backend with embedded USB communication and share
backend selection across the CLI and GUI.

Serialize USB operations, cache connections, handle device replugging, and
report authorization, busy, and permission errors.

Create keys atomically and validate existing keys. Convert PKCS#1 keys to
temporary PKCS#8 files without modifying the originals. Propagate remote
shell failures and add coverage for discovery, locking, and recovery.
2026-08-13 07:52:32 -07:00

63 lines
1.5 KiB
TOML

[package]
name = "uad-core"
version.workspace = true
authors.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
readme.workspace = true
keywords.workspace = true
categories = ["command-line-utilities"]
edition.workspace = true
[features]
default = ["builtin-adb"]
builtin-adb = [
"dep:adb_client",
"adb_client/usb",
"dep:rusb",
"dep:rsa",
"dep:tempfile",
]
self-update = ["dep:flate2", "dep:tar"]
[dependencies]
adb_client = { workspace = true, optional = true }
rusb = { workspace = true, optional = true }
rsa = { workspace = true, optional = true }
tempfile = { workspace = true, optional = true }
serde.workspace = true
serde_json.workspace = true
log.workspace = true
chrono.workspace = true
toml.workspace = true
dirs.workspace = true
ureq.workspace = true
retry.workspace = true
csv.workspace = true
flate2 = { workspace = true, optional = true }
tar = { workspace = true, optional = true }
[target.'cfg(target_os = "windows")'.dependencies]
win32console.workspace = true
[lints.rust]
deprecated_safe = "warn"
[lints.clippy]
undocumented_unsafe_blocks = "forbid"
exit = "deny"
panic_in_result_fn = "warn"
infinite_loop = "warn"
mem_forget = "warn"
implicit_clone = "warn"
format_push_string = "warn"
large_include_file = "warn"
shadow_unrelated = "warn"
struct_field_names = "allow" # annoying
disallowed_types = "deny"
disallowed_methods = "deny"
allow_attributes_without_reason = "warn"
pedantic = { level = "warn", priority = -1 }