[package]
edition = "2024"
rust-version = "1.88"
name = "odl"
version = "2.3.1"
authors = ["jd1378 <javad.mnjd@hotmail.com>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "flexible download library and CLI intended to be fast, reliable, and easy to use."
homepage = "https://github.com/jd1378/odl"
readme = "README.md"
keywords = [
"download",
"manager",
"idm",
"dl",
"download-manager",
]
categories = [
"command-line-utilities",
"network-programming",
]
license = "MIT"
repository = "https://github.com/jd1378/odl"
[features]
cli = [
"dep:clap",
"dep:indicatif",
"dep:tracing-subscriber",
"dep:serde_json",
"tokio/signal",
"self-update",
]
default = [
"cli",
"ytdlp",
]
self-update = [
"dep:serde_json",
"tokio/process",
]
ytdlp = [
"dep:serde_json",
"dep:windows-sys",
"tokio/process",
"tokio/io-util",
]
[lib]
name = "odl"
path = "src/lib.rs"
[[bin]]
name = "odl"
path = "src/main.rs"
required-features = ["cli"]
[[test]]
name = "cancel_during_backoff"
path = "tests/cancel_during_backoff.rs"
[[test]]
name = "cli_ascii_filenames"
path = "tests/cli_ascii_filenames.rs"
[[test]]
name = "cli_checksum"
path = "tests/cli_checksum.rs"
[[test]]
name = "part_completion_events"
path = "tests/part_completion_events.rs"
[[test]]
name = "part_progress_cadence"
path = "tests/part_progress_cadence.rs"
[[test]]
name = "post_transfer_progress"
path = "tests/post_transfer_progress.rs"
[[test]]
name = "range_integrity"
path = "tests/range_integrity.rs"
[[test]]
name = "retry_reporting"
path = "tests/retry_reporting.rs"
[[test]]
name = "status_classification"
path = "tests/status_classification.rs"
[[test]]
name = "ytdlp_engine"
path = "tests/ytdlp_engine.rs"
[dependencies.async-trait]
version = "0.1.88"
[dependencies.atomicwrites]
version = "0.4.4"
[dependencies.base64]
version = "0.22.1"
[dependencies.bytes]
version = "1"
[dependencies.chrono]
version = "0.4.41"
[dependencies.clap]
version = "4.5.41"
features = ["derive"]
optional = true
[dependencies.derive_builder]
version = "0.20.2"
[dependencies.deunicode]
version = "1.6.2"
[dependencies.digest]
version = "0.11"
[dependencies.dirs]
version = "6.0.0"
[dependencies.filetime]
version = "0.2"
[dependencies.fs2]
version = "0.4.3"
[dependencies.futures]
version = "0.3.31"
[dependencies.humantime]
version = "2"
[dependencies.indexmap]
version = "2"
features = ["serde"]
[dependencies.indicatif]
version = "0.18.3"
optional = true
[dependencies.md-5]
version = "0.11"
[dependencies.mime_guess]
version = "2"
[dependencies.once_cell]
version = "1"
[dependencies.percent-encoding]
version = "2.3.1"
[dependencies.prost]
version = "0.14"
[dependencies.rand]
version = "0.10"
[dependencies.reflink-copy]
version = "0.1.29"
features = ["tracing"]
[dependencies.regex]
version = "1"
[dependencies.reqwest]
version = "0.13"
features = [
"http2",
"gzip",
"brotli",
"native-tls",
"native-tls-vendored",
"socks",
"stream",
]
default-features = false
[dependencies.reqwest-retry]
version = "0.9"
[dependencies.secrecy]
version = "0.10.3"
[dependencies.serde]
version = "1.0"
features = ["derive"]
[dependencies.serde_json]
version = "1.0"
optional = true
[dependencies.sha1]
version = "0.11"
[dependencies.sha2]
version = "0.11"
[dependencies.tempfile]
version = "3.20.0"
[dependencies.thiserror]
version = "2.0.12"
[dependencies.tokio]
version = "1"
features = [
"macros",
"rt-multi-thread",
"test-util",
]
[dependencies.tokio-util]
version = "0.7"
default-features = false
[dependencies.toml]
version = "1"
[dependencies.tracing]
version = "0.1.41"
[dependencies.tracing-subscriber]
version = "0.3.20"
features = ["env-filter"]
optional = true
[dependencies.ulid]
version = "3"
[dev-dependencies.async-trait]
version = "0.1.88"
[dev-dependencies.libc]
version = "0.2.189"
[dev-dependencies.mockito]
version = "1.7.0"
[dev-dependencies.reqwest]
version = "0.13"
features = [
"http2",
"gzip",
"brotli",
"native-tls",
"socks",
"stream",
"blocking",
]
default-features = false
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
]
[build-dependencies.prost-build]
version = "0.14"
[build-dependencies.protox]
version = "=0.9.1"
[target."cfg(windows)".dependencies.windows-sys]
version = "0.61"
features = [
"Win32_Foundation",
"Win32_System_JobObjects",
"Win32_System_Threading",
]
optional = true