# 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 = "dtop"
version = "0.7.4"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A terminal-based Docker container monitoring tool with real-time CPU and memory metrics"
homepage = "https://github.com/amir20/dtop"
documentation = "https://github.com/amir20/dtop"
readme = "README.md"
license = "MIT"
repository = "https://github.com/amir20/dtop"

[package.metadata.release]
push = true
tag = true
pre-release-hook = [
    "git-cliff",
    "v0.3.0..",
    "-o",
    "CHANGELOG.md",
    "--tag",
    "{{version}}",
]

[package.metadata.dist]
changelog = "CHANGELOG.md"

[features]
default = ["self-update"]
self-update = ["dep:self_update"]

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

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

[dependencies.ansi-to-tui]
version = "8.0"

[dependencies.bollard]
version = "0.20.0"
features = [
    "ssh",
    "ssl",
]

[dependencies.chrono]
version = "0.4"

[dependencies.clap]
version = "4.5"
features = [
    "derive",
    "color",
]

[dependencies.crossterm]
version = "0.29"

[dependencies.dirs]
version = "6.0"

[dependencies.futures-util]
version = "0.3"

[dependencies.open]
version = "5.3"

[dependencies.ratatui]
version = "0.30"

[dependencies.self_update]
version = "0.44"
features = [
    "archive-tar",
    "compression-flate2",
    "rustls",
    "ureq",
]
optional = true
default-features = false

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

[dependencies.serde_json]
version = "1.0"

[dependencies.serde_yaml]
version = "0.9"

[dependencies.timeago]
version = "0.6"

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

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "fmt",
    "env-filter",
]

[dependencies.tui-input]
version = "0.15"

[dependencies.url]
version = "2.5"

[dev-dependencies.insta]
version = "1.46"
features = ["filters"]

[dev-dependencies.mockall]
version = "0.14"

[profile.dist]
lto = "thin"
inherits = "release"

[profile.release]
opt-level = "z"
lto = "fat"
codegen-units = 1
strip = true

[profile.release-with-debug]
debug = 2
inherits = "release"
strip = false
