# 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 = "2021"
rust-version = "1.75"
name = "ttop"
version = "0.1.0"
authors = ["PAIML Team"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Terminal Top: 10X better than btop - Pure Rust system monitor with GPU, ML stack, and deterministic rendering"
readme = "README.md"
keywords = [
    "system-monitor",
    "tui",
    "terminal",
    "btop",
    "htop",
]
categories = [
    "command-line-utilities",
    "visualization",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/paiml/trueno-viz"

[features]
amd = []
default = ["nvidia"]
full = [
    "nvidia",
    "tracing",
]
nvidia = ["trueno-viz/monitor-nvidia"]
tracing = ["dep:renacer"]

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

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

[[test]]
name = "panels_test"
path = "tests/panels_test.rs"

[dependencies.anyhow]
version = "1.0"

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

[dependencies.crossterm]
version = "0.28"

[dependencies.dirs]
version = "5.0"

[dependencies.ratatui]
version = "0.29"

[dependencies.renacer]
version = "0.9"
optional = true

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

[dependencies.serde_yaml]
version = "0.9"

[dependencies.thiserror]
version = "2.0"

[dependencies.trueno-viz]
version = "0.1.8"
features = ["monitor"]

[dev-dependencies.proptest]
version = "1.4"

[dev-dependencies.tempfile]
version = "3.10"

[target.'cfg(target_os = "linux")'.dependencies.libc]
version = "0.2"

[lints.clippy]
expect_used = "allow"
unwrap_used = "deny"

[lints.clippy.all]
level = "warn"
priority = -1

[lints.rust]
unsafe_code = "warn"

[profile.release]
opt-level = 3
lto = "thin"
strip = "symbols"
