[features]
default = []
slow-tests = []
archive-rar = ["dep:unrar"]
[package]
name = "subx-cli"
version = "1.6.0"
edition = "2024"
authors = ["Jim Chen <Jim@ChenJ.im>"]
description = "AI subtitle processing CLI tool, which automatically matches, renames, and converts subtitle files."
license = "GPL-3.0-or-later"
repository = "https://github.com/jim60105/subx-cli"
homepage = "https://github.com/jim60105/subx-cli"
keywords = ["subtitle", "cli", "ai", "video"]
categories = ["command-line-utilities", "multimedia"]
exclude = [
"assets/",
".github/",
"tests/",
"target/",
"*.mp4",
"*.mp3",
"*.mov",
"*.avi",
"*.mkv",
"plans/",
"scripts/test_*.sh",
"benches/",
"**/*.log",
"**/*.tmp",
"**/.DS_Store",
"Cargo.lock",
]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lints.rustdoc]
broken_intra_doc_links = "deny"
private_doc_tests = "warn"
invalid_rust_codeblocks = "warn"
bare_urls = "warn"
[lints.clippy]
missing_docs_in_private_items = "allow"
doc_markdown = "allow"
[lints.rust]
missing_docs = "allow"
[dependencies]
clap = { version = "4.5.40", features = ["derive", "cargo"] }
clap_complete = "4.5.54"
regex = "1.0"
encoding_rs = "0.8"
tokio = { version = "1.0", features = [
"rt-multi-thread",
"macros",
"time",
"sync",
"fs",
] }
anyhow = "1.0"
thiserror = "2.0"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
toml = "1"
config = "0.15"
reqwest = { version = "0.13", features = ["json", "stream", "rustls"] }
walkdir = "2.3"
url = "2"
notify = "8.0"
futures = "0.3"
async-trait = "0.1"
uuid = { version = "1.3", features = ["v4"] }
log = "0.4"
env_logger = "0.11"
colored = "3.0"
tabled = "0.20"
indicatif = "0.18"
dialoguer = "0.11"
md-5 = "0.10"
symphonia = { version = "0.5", default-features = false, features = [
"isomp4",
"mkv",
"ogg",
"wav",
"aac",
"flac",
"mp3",
"pcm",
"vorbis",
] }
tokio-util = { version = "0.7", features = ["codec"] }
hound = "3.5"
voice_activity_detector = { version = "0.2.1", features = [
"async",
] }
rubato = "0.16.2"
dirs = "6.0"
num_cpus = "1.0"
once_cell = "1.19"
zip = "4"
unrar = { version = "0.5", optional = true }
sevenz-rust = "0.6"
tar = "0.4"
flate2 = "1"
tempfile = "3.10"
[dev-dependencies]
tokio-test = "0.4"
assert_cmd = "2.0"
predicates = "3.0"
mockall = "0.13"
rstest = "0.25"
test-case = "3.0"
regex = "1.10"
wiremock = "0.6"
criterion = { version = "0.6.0", features = ["html_reports"] }
[[bin]]
name = "subx-cli"
path = "src/main.rs"
[[bench]]
name = "retry_performance"
harness = false
[[bench]]
name = "file_id_generation_bench"
harness = false
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
strip = true
[profile.dev]
opt-level = 0
debug = true
split-debuginfo = "unpacked"
[target.'cfg(windows)'.dependencies]
winapi = { version = "0.3", features = ["winuser"] }
[target.'cfg(unix)'.dependencies]
libc = "0.2"