mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-11-22 13:47:21 +00:00
Older Windows versions (8.1 and older) were failing to render properly due to winapi not supporting underlining. Looks like we were transitively enabling this feature because of the crossterm feature, which pulls in ratatui_crossterm which enables it by default. As a quick fix, we manually pull in ratatui_crossterm ourselves and disable that feature.
252 lines
6.7 KiB
TOML
252 lines
6.7 KiB
TOML
[package]
|
|
name = "bottom"
|
|
version = "0.15.0"
|
|
repository = "https://github.com/ClementTsang/bottom"
|
|
license = "MIT"
|
|
description = "A customizable cross-platform graphical process/system monitor for the terminal. Supports Linux, macOS, and Windows."
|
|
documentation = "https://bottom.pages.dev/stable"
|
|
readme = "README.md"
|
|
default-run = "btm"
|
|
build = "build.rs"
|
|
authors = ["Clement Tsang <cjhtsang@uwaterloo.ca>"]
|
|
keywords = ["cross-platform", "monitoring", "cli", "top", "tui"]
|
|
categories = ["command-line-utilities", "visualization"]
|
|
exclude = [
|
|
".cargo-husky/",
|
|
".github/",
|
|
".idea/",
|
|
".vscode/",
|
|
"assets/",
|
|
"demos/",
|
|
"desktop/",
|
|
"docs/",
|
|
"flamegraphs/",
|
|
"sample_configs/",
|
|
"schema/",
|
|
"scripts/",
|
|
"wix/",
|
|
".all-contributorsrc",
|
|
".gitignore",
|
|
".markdownlint.json",
|
|
"CHANGELOG.md",
|
|
"clippy.toml",
|
|
"codecov.yml",
|
|
"CONTRIBUTING.md",
|
|
"Cross.toml",
|
|
"debug.log",
|
|
"flamegraph.svg",
|
|
"profile.json.gz",
|
|
"rustfmt.toml",
|
|
]
|
|
edition = "2024"
|
|
# The oldest version I've tested that should still build - note this is not an official MSRV!
|
|
rust-version = "1.95.0"
|
|
|
|
[lib]
|
|
test = true
|
|
doctest = true
|
|
doc = true
|
|
|
|
[[bin]]
|
|
name = "btm"
|
|
path = "src/bin/main.rs"
|
|
doc = false
|
|
|
|
[features]
|
|
# Used for general release builds.
|
|
battery = ["dep:starship-battery"]
|
|
nvidia = ["gpu", "dep:nvml-wrapper"]
|
|
gpu = []
|
|
zfs = []
|
|
deploy = ["battery", "nvidia", "zfs"]
|
|
default = ["deploy"]
|
|
|
|
# These features should not be included in release builds.
|
|
logging = ["fern", "log"]
|
|
generate_schema = ["schemars", "strum"]
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.104"
|
|
clap = { version = "4.6.6", features = ["default", "cargo", "wrap_help", "derive"] }
|
|
concat-string = "1.0.1"
|
|
crossterm = "0.29.0"
|
|
ctrlc = { version = "3.5.2", features = ["termination"] }
|
|
dirs = "7.0.0"
|
|
humantime = "2.3.0"
|
|
indexmap = "2.14.0"
|
|
indoc = "2.0.7"
|
|
itertools = "0.15.0"
|
|
nvml-wrapper = { version = "0.13.0", optional = true, features = ["legacy-functions"] }
|
|
ratatui = { version = "0.30.2", default-features = false, features = [
|
|
"unstable-rendered-line-info",
|
|
"layout-cache",
|
|
"std",
|
|
] }
|
|
ratatui-core = "0.1.2"
|
|
ratatui-crossterm = { version = "0.1.2", default-features = false, features = ["crossterm_0_29"] }
|
|
regex = "1.13.1"
|
|
rustc-hash = "2.1.3"
|
|
serde = { version = "1.0.228", features = ["derive"] }
|
|
starship-battery = { version = "0.12.0", optional = true }
|
|
sysinfo = "=0.39.6"
|
|
timeless = "0.1.0"
|
|
toml_edit = { version = "0.25.12", features = ["serde"] }
|
|
unicode-ellipsis = "0.6.0"
|
|
unicode-segmentation = "1.13.3"
|
|
unicode-width = "0.2.2"
|
|
|
|
# Used for logging. Mostly for dev-level debugging.
|
|
fern = { version = "0.7.1", optional = true }
|
|
log = { version = "0.4.33", optional = true }
|
|
|
|
# These are just used for JSON schema generation.
|
|
schemars = { version = "1.2.2", optional = true }
|
|
strum = { version = "0.28.0", features = ["derive"], optional = true }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "0.2.189"
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
rustix = { version = "1.1.4", features = ["fs", "param"] }
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
core-foundation = "0.10.1"
|
|
mach2 = "0.7.0"
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
windows = { version = "0.62.2", features = [
|
|
"Win32_Foundation",
|
|
"Win32_Security",
|
|
"Win32_Storage_FileSystem",
|
|
"Win32_System_IO",
|
|
"Win32_System_Ioctl",
|
|
"Win32_System_Performance",
|
|
"Win32_System_ProcessStatus",
|
|
"Win32_System_Threading",
|
|
] }
|
|
|
|
[target.'cfg(target_os = "freebsd")'.dependencies]
|
|
serde_json = { version = "1.0.151" }
|
|
sysctl = { version = "0.7.1" }
|
|
|
|
[dev-dependencies]
|
|
assert_cmd = "2.2.2"
|
|
predicates = "3.1.4"
|
|
tempfile = { version = "3.27.0", default-features = false }
|
|
|
|
[target.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.dev-dependencies]
|
|
portable-pty = "0.9.0"
|
|
|
|
[build-dependencies]
|
|
clap = { version = "4.6.6", features = ["default", "cargo", "wrap_help", "derive"] }
|
|
clap_complete = "4.6.9"
|
|
clap_complete_nushell = "4.6.1"
|
|
clap_complete_fig = "4.5.2"
|
|
clap_mangen = "0.3.2"
|
|
indoc = "2.0.7"
|
|
|
|
# Compile dependencies with optimizations enabled, even in debug mode.
|
|
[profile.dev.package."*"]
|
|
opt-level = 3
|
|
|
|
[profile.release]
|
|
debug = 0
|
|
strip = "symbols"
|
|
lto = true
|
|
opt-level = 3
|
|
codegen-units = 1
|
|
|
|
[profile.profiling]
|
|
inherits = "release"
|
|
debug = true
|
|
strip = false
|
|
|
|
[package.metadata.deb]
|
|
section = "utility"
|
|
assets = [
|
|
[
|
|
"target/release/btm",
|
|
"usr/bin/",
|
|
"755",
|
|
],
|
|
[
|
|
"LICENSE",
|
|
"usr/share/doc/btm/",
|
|
"644",
|
|
],
|
|
[
|
|
"manpage/btm.1.gz",
|
|
"usr/share/man/man1/btm.1.gz",
|
|
"644",
|
|
],
|
|
[
|
|
"completion/btm.bash",
|
|
"usr/share/bash-completion/completions/btm",
|
|
"644",
|
|
],
|
|
[
|
|
"completion/btm.fish",
|
|
"usr/share/fish/vendor_completions.d/btm.fish",
|
|
"644",
|
|
],
|
|
[
|
|
"completion/_btm",
|
|
"usr/share/zsh/vendor-completions/",
|
|
"644",
|
|
],
|
|
[
|
|
"desktop/bottom.desktop",
|
|
"usr/share/applications/bottom.desktop",
|
|
"644",
|
|
],
|
|
[
|
|
"assets/icons/bottom-system-monitor.svg",
|
|
"/usr/share/icons/hicolor/scalable/apps/bottom-system-monitor.svg",
|
|
"644",
|
|
],
|
|
]
|
|
conflicts = "btm"
|
|
extended-description = """
|
|
|
|
By default, bottom will look for a config file in ~/.config/bottom/bottom.toml. A config file can be specified \
|
|
using `-C`. If a config file does not exist at the specified or default location, a default one will be created \
|
|
for the user there.
|
|
"""
|
|
|
|
[package.metadata.deb.variants.arm64]
|
|
depends = "libc6:arm64 (>= 2.28)"
|
|
|
|
[package.metadata.deb.variants.armhf]
|
|
depends = "libc6:armhf (>= 2.28)"
|
|
|
|
[package.metadata.wix]
|
|
output = "bottom_installer.msi"
|
|
product-icon = "assets/icons/bottom.ico"
|
|
|
|
[package.metadata.generate-rpm]
|
|
assets = [
|
|
{ source = "target/release/btm", dest = "/usr/bin/", mode = "755" },
|
|
{ source = "LICENSE", dest = "/usr/share/doc/btm/", mode = "644" },
|
|
{ source = "manpage/btm.1.gz", dest = "/usr/share/man/man1/btm.1.gz", mode = "644", doc = true },
|
|
{ source = "completion/btm.bash", dest = "/usr/share/bash-completion/completions/btm", mode = "644" },
|
|
{ source = "completion/btm.fish", dest = "/usr/share/fish/vendor_completions.d/btm.fish", mode = "644" },
|
|
{ source = "completion/_btm", dest = "/usr/share/zsh/vendor-completions/", mode = "644" },
|
|
{ source = "desktop/bottom.desktop", dest = "/usr/share/applications/bottom.desktop", mode = "644" },
|
|
{ source = "assets/icons/bottom-system-monitor.svg", dest = "/usr/share/icons/hicolor/scalable/apps/bottom-system-monitor.svg", mode = "644" },
|
|
]
|
|
|
|
[lints.rust]
|
|
rust_2018_idioms = "deny"
|
|
# missing_docs = "deny"
|
|
|
|
[lints.rustdoc]
|
|
broken_intra_doc_links = "deny"
|
|
private_intra_doc_links = "deny"
|
|
missing_crate_level_docs = "deny"
|
|
|
|
[lints.clippy]
|
|
todo = "deny"
|
|
unimplemented = "deny"
|
|
missing_safety_doc = "deny"
|
|
unwrap_used = "deny"
|