# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "dwrs"
version = "0.3.1"
authors = ["vadim rofeds12345@gmail.com"]
build = false
exclude = [
    "target/",
    "*.deb",
    "*.rpm",
    "*.tar.gz",
    "tests/",
    ".github/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "CLI tool for parallel file downloads with progress bar and i18n support"
readme = "README.md"
keywords = [
    "download",
    "parallel",
    "cli",
    "progress",
    "i18n",
]
categories = [
    "command-line-utilities",
    "network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/Bircoder432/dwrs"

[package.metadata.deb]
maintainer = "vadim rofeds12345@gmail.com"
depends = "libc6 (>= 2.28)"
section = "utils"
priority = "optional"
assets = [[
    "target/release/dwrs",
    "/usr/bin/",
    "755",
]]

[features]
default = ["notify"]
notify = ["notify-rust"]

[lib]
name = "dwrs"
path = "src/lib.rs"

[[bin]]
name = "dwrs"
path = "src/main.rs"

[dependencies.anyhow]
version = "1.0.100"

[dependencies.clap]
version = "4.5.41"
features = ["derive"]

[dependencies.colored]
version = "3.0.0"

[dependencies.dirs]
version = "6.0.0"

[dependencies.env_logger]
version = "0.11.8"

[dependencies.futures]
version = "0.3.31"

[dependencies.indicatif]
version = "0.18.0"

[dependencies.lazy_static]
version = "1.5.0"

[dependencies.log]
version = "0.4.27"

[dependencies.notify-rust]
version = "4.11.7"
optional = true

[dependencies.once_cell]
version = "1.21.3"

[dependencies.reqwest]
version = "0.12.22"
features = [
    "native-tls",
    "rustls-tls",
    "rustls-tls-webpki-roots",
    "blocking",
    "json",
    "stream",
    "gzip",
    "brotli",
    "deflate",
    "http2",
]
default-features = false

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.tokio]
version = "1.46.1"
features = ["full"]

[dependencies.toml]
version = "0.9.10"

[dev-dependencies.httpmock]
version = "0.8.2"

[dev-dependencies.tokio-test]
version = "0.4"

[profile.maxperf]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
overflow-checks = false
inherits = "release"
strip = true

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
debug = 0
panic = "abort"
strip = "symbols"
