[package]
edition = "2021"
rust-version = "1.88.0"
name = "youtube-legend-cli"
version = "0.2.9"
authors = ["Danilo <danilo@example.com>"]
build = "build.rs"
exclude = [
"docs_prd/**",
"docs_rules/**",
".github/**",
"tests/fixtures/snapshots/**",
"*.bak.*",
"*.tar.gz",
"/graphrag.sqlite",
"/graphrag.sqlite-shm",
"/graphrag.sqlite-wal",
"/gaps.md",
"/AGENTS.md",
"/CLAUDE.md",
"/llms.txt",
"/llms-full.txt",
"/ci.yml",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
default-run = "youtube-legend-cli"
description = "Non-interactive Rust CLI that downloads YouTube subtitles through third-party providers, using a native Unix stdin/stdout interface."
homepage = "https://github.com/daniloaguiarbr/youtube-legend-cli"
documentation = "https://docs.rs/youtube-legend-cli"
readme = "README.md"
keywords = [
"youtube",
"subtitles",
"cli",
"scraping",
"srt",
]
categories = ["command-line-utilities"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/daniloaguiarbr/youtube-legend-cli"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
"--html-in-header",
"docsrs-header.html",
]
default-target = "x86_64-unknown-linux-gnu"
targets = [
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-musl",
"x86_64-pc-windows-msvc",
"x86_64-apple-darwin",
"aarch64-apple-darwin",
]
no-default-features = false
msrv-policy = "highest"
[badges.maintenance]
status = "actively-developed"
[features]
default = []
headless = [
"dep:chromiumoxide",
"dep:futures",
]
[lib]
name = "youtube_legend_cli"
path = "src/lib.rs"
[[bin]]
name = "snapshot"
path = "src/bin/snapshot.rs"
[[bin]]
name = "youtube-legend-cli"
path = "src/main.rs"
[[example]]
name = "batch"
path = "examples/batch.rs"
[[example]]
name = "json_output"
path = "examples/json_output.rs"
[[example]]
name = "single_url"
path = "examples/single_url.rs"
[[test]]
name = "corpus"
path = "tests/integration/corpus.rs"
[[test]]
name = "offline_cache"
path = "tests/integration/offline_cache.rs"
[[test]]
name = "provider_a_wiremock"
path = "tests/integration/provider_a_wiremock.rs"
[[test]]
name = "provider_b_wiremock"
path = "tests/integration/provider_b_wiremock.rs"
[[test]]
name = "rss"
path = "tests/integration/rss.rs"
[[test]]
name = "signal_handler_stress"
path = "tests/integration/signal_handler_stress.rs"
[[bench]]
name = "cache_bench"
path = "benches/cache_bench.rs"
harness = false
[dependencies.aes]
version = "0.8"
features = ["zeroize"]
[dependencies.async-trait]
version = "0.1"
[dependencies.base64]
version = "0.22"
[dependencies.cbc]
version = "0.1"
features = ["zeroize"]
[dependencies.chromiumoxide]
version = "0.9"
optional = true
[dependencies.chrono]
version = "0.4"
features = [
"clock",
"serde",
]
default-features = false
[dependencies.clap]
version = "4.5"
features = [
"derive",
"wrap_help",
"cargo",
"unicode",
]
[dependencies.directories]
version = "5.0"
[dependencies.futures]
version = "0.3"
optional = true
[dependencies.hex]
version = "0.4"
[dependencies.hmac]
version = "0.12"
[dependencies.is-terminal]
version = "0.4"
[dependencies.mimalloc]
version = "0.1"
features = ["override"]
default-features = false
[dependencies.pbkdf2]
version = "0.12"
features = ["simple"]
[dependencies.rand]
version = "0.10"
features = ["sys_rng"]
[dependencies.regex]
version = "1.10"
[dependencies.reqwest]
version = "0.13"
features = [
"rustls",
"gzip",
"cookies",
"json",
"form",
]
default-features = false
[dependencies.robotstxt]
version = "0.3"
[dependencies.scraper]
version = "0.27"
default-features = false
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
[dependencies.sha1]
version = "0.10"
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1.40"
features = ["full"]
[dependencies.tokio-util]
version = "0.7"
features = ["rt"]
[dependencies.toml]
version = "0.8"
[dependencies.tracing]
version = "0.1"
[dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"json",
]
[dependencies.unicode-normalization]
version = "0.1"
[dependencies.url]
version = "2.5"
[dev-dependencies.assert_cmd]
version = "2.0"
[dev-dependencies.criterion]
version = "0.5"
features = ["cargo_bench_support"]
default-features = false
[dev-dependencies.libc]
version = "0.2"
[dev-dependencies.predicates]
version = "3.1"
[dev-dependencies.serial_test]
version = "3"
[dev-dependencies.tokio]
version = "1.40"
features = [
"full",
"test-util",
]
[dev-dependencies.wiremock]
version = "0.6"
[build-dependencies.chrono]
version = "0.4"
features = ["clock"]
default-features = false
[lints.clippy]
doc_markdown = "warn"
missing_errors_doc = "warn"
missing_panics_doc = "warn"
missing_safety_doc = "warn"
undocumented_unsafe_blocks = "warn"
[lints.rust]
unsafe_code = "warn"
unsafe_op_in_unsafe_fn = "allow"
[lints.rustdoc]
bare_urls = "deny"
broken_intra_doc_links = "warn"
invalid_codeblock_attributes = "warn"
invalid_html_tags = "deny"
invalid_rust_codeblocks = "deny"
missing_crate_level_docs = "warn"
private_doc_tests = "deny"
private_intra_doc_links = "warn"
redundant_explicit_links = "warn"
unescaped_backticks = "warn"
[profile.dev]
opt-level = 0
debug = 2
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
panic = "abort"
strip = true