[package]
name = "dwutil"
version = "0.1.3"
edition = "2024"
description = "simple and easy use downloader"
license = "MIT"
author = ["prefix63 <prefix6@outlook.es>"]
readme = "README.md"
repository = "https://github.com/prefix63/dwutil"
categories = ["multimedia", "command-line-interface", "command-line-utilities"]
keywords = ["download", "cli", "assets", "resources"]
[dependencies]
ureq = "2.9"
tracing = "0.1"
hex = { version = "0.4.3" }
tempfile = "3.20.0"
indicatif = { version = "0.17", optional = true }
flate2 = { version = "1.0", features = ["rust_backend"], optional = true }
xz2 = { version = "0.1.7", optional = true }
tar = { version = "0.4", optional = true }
zip = { version = "0.6", optional = true }
sha1 = { version = "0.10.6", optional = true }
sha2 = { version = "0.10.9", optional = true }
md5 = { version = "0.8.0", optional = true }
infer = { version = "0.19.0", optional = true }
[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = "symbols"
[dev-dependencies]
sha1 = "0.10.6"
tempfile = "3.20.0"
tracing-subscriber = { version = "0.3.19", features = ["fmt"] }
[features]
default = ["sha", "md5", "zip", "targz", "indicatif", "tarxz"]
full-decoders = ["zip", "targz", "tarxz"]
full-hashers = ["sha", "md5"]
full = ["full-decoders", "full-hashers", "indicatif"]
sha = ["dep:sha1", "dep:sha2"]
md5 = ["dep:md5"]
indicatif = ["dep:indicatif"]
gz = ["dep:flate2", "dep:infer"]
zip = ["dep:zip", "dep:infer"]
tar = ["dep:tar", "dep:infer"]
xz = ["dep:xz2", "dep:infer"]
targz = ["tar", "gz"]
tarxz = ["tar", "xz"]