2019-09-04 03:27:25 +00:00
|
|
|
[package]
|
2019-09-17 02:54:39 +00:00
|
|
|
name = "bottom"
|
2024-08-06 00:28:17 +00:00
|
|
|
version = "0.10.2"
|
2020-01-11 23:21:14 +00:00
|
|
|
authors = ["Clement Tsang <cjhtsang@uwaterloo.ca>"]
|
2023-01-18 07:26:30 +00:00
|
|
|
edition = "2021"
|
2019-09-17 02:54:39 +00:00
|
|
|
repository = "https://github.com/ClementTsang/bottom"
|
2020-02-22 23:41:13 +00:00
|
|
|
keywords = ["cross-platform", "monitoring", "cli", "top", "tui"]
|
2019-09-17 02:42:23 +00:00
|
|
|
license = "MIT"
|
2020-02-19 05:16:40 +00:00
|
|
|
categories = ["command-line-utilities", "visualization"]
|
2022-01-20 04:49:11 +00:00
|
|
|
description = "A customizable cross-platform graphical process/system monitor for the terminal. Supports Linux, macOS, and Windows."
|
|
|
|
documentation = "https://clementtsang.github.io/bottom/stable"
|
2019-09-17 04:24:36 +00:00
|
|
|
readme = "README.md"
|
2020-08-19 20:32:33 +00:00
|
|
|
default-run = "btm"
|
2022-03-11 11:45:05 +00:00
|
|
|
build = "build.rs"
|
2022-06-29 00:39:43 +00:00
|
|
|
exclude = [
|
2022-11-05 05:00:33 +00:00
|
|
|
".cargo-husky/",
|
2022-06-29 00:39:43 +00:00
|
|
|
".github/",
|
2024-07-26 01:02:54 +00:00
|
|
|
".idea",
|
2024-06-16 23:28:24 +00:00
|
|
|
".vscode/",
|
2022-06-29 00:39:43 +00:00
|
|
|
"assets/",
|
2023-09-06 23:12:28 +00:00
|
|
|
"desktop/",
|
2022-06-29 00:39:43 +00:00
|
|
|
"docs/",
|
2024-06-16 23:28:24 +00:00
|
|
|
"flamegraphs/",
|
2022-08-30 22:25:16 +00:00
|
|
|
"sample_configs/",
|
2024-06-16 23:28:24 +00:00
|
|
|
"schema/",
|
2023-04-28 04:00:19 +00:00
|
|
|
"scripts/",
|
2024-05-27 05:16:37 +00:00
|
|
|
"wix/",
|
2022-11-05 05:00:33 +00:00
|
|
|
".all-contributorsrc",
|
|
|
|
".cirrus.yml",
|
2023-09-06 23:12:28 +00:00
|
|
|
".gitignore",
|
2022-11-05 05:00:33 +00:00
|
|
|
".markdownlint.json",
|
|
|
|
"CHANGELOG.md",
|
|
|
|
"clippy.toml",
|
|
|
|
"codecov.yml",
|
|
|
|
"CONTRIBUTING.md",
|
|
|
|
"Cross.toml",
|
2024-07-26 01:02:54 +00:00
|
|
|
"rust-toolchain.toml",
|
2022-11-05 05:00:33 +00:00
|
|
|
"rustfmt.toml",
|
2022-06-29 00:39:43 +00:00
|
|
|
]
|
2024-06-19 18:04:51 +00:00
|
|
|
# The oldest version I've tested that should still build - note this is not an official MSRV!
|
|
|
|
rust-version = "1.74.0"
|
2019-09-04 03:27:25 +00:00
|
|
|
|
2019-10-19 20:29:04 +00:00
|
|
|
[[bin]]
|
|
|
|
name = "btm"
|
2024-06-05 06:00:21 +00:00
|
|
|
path = "src/main.rs"
|
2022-01-28 00:16:27 +00:00
|
|
|
test = true
|
2022-06-14 22:31:32 +00:00
|
|
|
doctest = true
|
|
|
|
doc = true
|
2021-02-28 22:40:55 +00:00
|
|
|
|
2023-02-07 09:24:14 +00:00
|
|
|
[profile.dev.package."*"]
|
2024-06-19 18:04:51 +00:00
|
|
|
# Compile dependencies with optimizations on even in debug mode.
|
|
|
|
opt-level = 3
|
2023-02-07 09:24:14 +00:00
|
|
|
|
2023-02-08 05:41:03 +00:00
|
|
|
[profile.no-opt]
|
|
|
|
inherits = "dev"
|
|
|
|
opt-level = 0
|
|
|
|
|
2020-01-04 21:07:35 +00:00
|
|
|
[profile.release]
|
2020-12-18 05:40:55 +00:00
|
|
|
debug = 0
|
2022-05-15 08:25:48 +00:00
|
|
|
strip = "symbols"
|
2020-12-18 05:40:55 +00:00
|
|
|
lto = true
|
2020-02-17 23:13:13 +00:00
|
|
|
opt-level = 3
|
2020-03-05 07:23:19 +00:00
|
|
|
codegen-units = 1
|
2020-01-04 21:07:35 +00:00
|
|
|
|
2023-04-11 07:22:32 +00:00
|
|
|
[profile.profiling]
|
2023-02-08 05:41:03 +00:00
|
|
|
inherits = "release"
|
|
|
|
debug = true
|
|
|
|
strip = false
|
|
|
|
|
2020-12-12 01:39:32 +00:00
|
|
|
[features]
|
2022-05-06 21:16:57 +00:00
|
|
|
battery = ["starship-battery"]
|
2022-02-12 21:40:33 +00:00
|
|
|
nvidia = ["nvml-wrapper"]
|
2024-01-11 00:07:22 +00:00
|
|
|
gpu = ["nvidia"]
|
2023-03-05 01:10:24 +00:00
|
|
|
zfs = []
|
2024-01-12 04:39:17 +00:00
|
|
|
deploy = ["battery", "gpu", "zfs"]
|
|
|
|
default = ["deploy"]
|
2023-05-06 21:35:10 +00:00
|
|
|
|
2024-07-26 05:12:29 +00:00
|
|
|
logging = ["fern", "log", "time"]
|
2024-07-22 07:30:03 +00:00
|
|
|
generate_schema = ["schemars", "serde_json", "strum"]
|
|
|
|
|
2019-09-04 03:27:25 +00:00
|
|
|
[dependencies]
|
2024-05-27 03:39:54 +00:00
|
|
|
anyhow = "1.0.86"
|
2024-06-19 18:04:51 +00:00
|
|
|
backtrace = "0.3.73"
|
2022-05-07 07:38:55 +00:00
|
|
|
cfg-if = "1.0.0"
|
2024-08-01 06:45:57 +00:00
|
|
|
clap = { version = "4.5.13", features = ["default", "cargo", "wrap_help", "derive"] }
|
refactor: consolidate time graph components
This consolidates all the time graph drawing to one main location, as well
as some small improvements. This is helpful in that I don't have to
reimplement the same thing across three locations if I have to make one
change that in theory should affect them all. In particular, the CPU
graph, memory graph, and network graph are all now using the same,
generic implementation for drawing, which we call (for now) a component.
Note this only affects drawing - it accepts some parameters affecting style
and labels, as well as data points, and draw similarly to how it used to
before. Widget-specific actions, or things affecting widget state,
should all be handled by the widget-specific code instead. For example,
our current implementation of x-axis autohide is still controlled by the
widget, not the component, even if some of the code is shared. Components
are, again, only responsible for drawing (at least for now). For that
matter, the graph component does not have mutable access to any form of
state outside of tui-rs' `Frame`. Note this *might* change in the
future, where we might give the component state.
Note that while functionally, the graph behaviour for now is basically
the same, a few changes were made internally other than the move to
components. The big change is that rather than using tui-rs' `Chart`
for the underlying drawing, we now use a tweaked custom `TimeChart`
tui-rs widget, which also handles all interpolation steps and some extra
customization. Personally, I don't like having to deviate from the
library's implementation, but this gives us more flexibility and allows
greater control. For example, this allows me to move away from the old
hacks required to do interpolation (where I had to mutate the existing
list to avoid having to reallocate an extra vector just to insert one
extra interpolated point). I can also finally allow customizable
legends (which will be added in the future).
2022-04-27 06:13:48 +00:00
|
|
|
concat-string = "1.0.1"
|
2023-08-09 05:27:56 +00:00
|
|
|
crossterm = "0.27.0"
|
2024-03-23 06:33:15 +00:00
|
|
|
ctrlc = { version = "3.4.4", features = ["termination"] }
|
2023-05-03 05:23:48 +00:00
|
|
|
dirs = "5.0.1"
|
2024-05-27 03:39:54 +00:00
|
|
|
hashbrown = "0.14.5"
|
2022-11-13 06:51:10 +00:00
|
|
|
humantime = "2.1.0"
|
2024-03-23 06:33:15 +00:00
|
|
|
indexmap = "2.2.6"
|
|
|
|
indoc = "2.0.5"
|
2024-05-27 03:39:54 +00:00
|
|
|
itertools = "0.13.0"
|
2024-02-15 05:01:47 +00:00
|
|
|
nvml-wrapper = { version = "0.10.0", optional = true, features = ["legacy-functions"] }
|
2024-06-19 18:04:51 +00:00
|
|
|
regex = "1.10.5"
|
2024-07-27 05:39:22 +00:00
|
|
|
serde = { version = "1.0.204", features = ["derive"] }
|
|
|
|
starship-battery = { version = "0.9.1", optional = true }
|
|
|
|
sysinfo = "=0.30.13"
|
|
|
|
toml_edit = { version = "0.22.17", features = ["serde"] }
|
2024-06-28 03:40:05 +00:00
|
|
|
tui = { version = "0.27.0", package = "ratatui" }
|
|
|
|
unicode-ellipsis = "0.2.0"
|
2024-02-15 05:01:47 +00:00
|
|
|
unicode-segmentation = "1.11.0"
|
2024-06-19 18:04:51 +00:00
|
|
|
unicode-width = "0.1.13"
|
2019-09-15 01:22:57 +00:00
|
|
|
|
2024-06-17 04:59:36 +00:00
|
|
|
# Used for logging.
|
|
|
|
fern = { version = "0.6.2", optional = true }
|
2024-06-28 03:40:05 +00:00
|
|
|
log = { version = "0.4.22", optional = true }
|
2024-07-26 05:12:29 +00:00
|
|
|
time = { version = "0.3.36", features = ["local-offset", "formatting", "macros"], optional = true }
|
2024-06-17 04:59:36 +00:00
|
|
|
|
2024-07-27 05:39:22 +00:00
|
|
|
# These are just used for JSON schema generation.
|
2024-06-17 04:59:36 +00:00
|
|
|
schemars = { version = "0.8.21", optional = true }
|
2024-07-04 08:50:05 +00:00
|
|
|
serde_json = { version = "1.0.120", optional = true }
|
2024-06-28 03:40:05 +00:00
|
|
|
strum = { version = "0.26.3", features = ["derive"], optional = true }
|
2024-06-17 04:59:36 +00:00
|
|
|
|
2020-12-22 01:24:27 +00:00
|
|
|
[target.'cfg(unix)'.dependencies]
|
2024-05-27 03:39:54 +00:00
|
|
|
libc = "0.2.155"
|
2020-12-22 01:24:27 +00:00
|
|
|
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
2024-07-27 05:39:22 +00:00
|
|
|
rustix = { version = "0.38.34", features = ["fs", "param"] }
|
2020-05-02 03:53:29 +00:00
|
|
|
|
2020-12-22 01:24:27 +00:00
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
2024-01-15 09:38:18 +00:00
|
|
|
core-foundation = "0.9.4"
|
|
|
|
mach2 = "0.4.2"
|
2020-09-02 06:59:51 +00:00
|
|
|
|
2020-12-22 01:24:27 +00:00
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
2024-07-04 08:50:05 +00:00
|
|
|
windows = { version = "0.58.0", features = [
|
2023-02-19 23:44:35 +00:00
|
|
|
"Win32_Foundation",
|
2023-04-10 09:52:46 +00:00
|
|
|
"Win32_Security",
|
|
|
|
"Win32_Storage_FileSystem",
|
|
|
|
"Win32_System_IO",
|
|
|
|
"Win32_System_Ioctl",
|
2023-03-08 05:08:02 +00:00
|
|
|
"Win32_System_ProcessStatus",
|
|
|
|
"Win32_System_Threading",
|
2023-02-19 23:44:35 +00:00
|
|
|
] }
|
2023-02-01 00:34:52 +00:00
|
|
|
|
2022-07-24 00:44:29 +00:00
|
|
|
[target.'cfg(target_os = "freebsd")'.dependencies]
|
2024-07-04 08:50:05 +00:00
|
|
|
serde_json = { version = "1.0.120" }
|
2023-11-28 04:06:51 +00:00
|
|
|
sysctl = { version = "0.5.5" }
|
2022-11-17 08:18:05 +00:00
|
|
|
filedescriptor = "0.8.2"
|
2022-07-24 00:44:29 +00:00
|
|
|
|
2019-09-15 01:22:57 +00:00
|
|
|
[dev-dependencies]
|
2024-07-27 05:39:22 +00:00
|
|
|
assert_cmd = "2.0.15"
|
2024-02-15 05:01:47 +00:00
|
|
|
cargo-husky = { version = "1.5.0", default-features = false, features = ["user-hooks"] }
|
|
|
|
predicates = "3.1.0"
|
2020-02-22 23:38:18 +00:00
|
|
|
|
2024-01-15 09:19:18 +00:00
|
|
|
[target.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.dev-dependencies]
|
|
|
|
portable-pty = "0.8.1"
|
|
|
|
|
2022-03-11 11:45:05 +00:00
|
|
|
[build-dependencies]
|
2024-08-01 06:45:57 +00:00
|
|
|
clap = { version = "4.5.13", features = ["default", "cargo", "wrap_help", "derive"] }
|
|
|
|
clap_complete = "4.5.12"
|
2024-07-27 05:39:22 +00:00
|
|
|
clap_complete_nushell = "4.5.3"
|
|
|
|
clap_complete_fig = "4.5.2"
|
|
|
|
clap_mangen = "0.2.23"
|
2024-03-23 06:33:15 +00:00
|
|
|
indoc = "2.0.5"
|
2020-08-31 21:50:21 +00:00
|
|
|
|
2020-02-22 23:38:18 +00:00
|
|
|
[package.metadata.deb]
|
2020-08-23 00:22:47 +00:00
|
|
|
section = "utility"
|
2020-02-22 23:38:18 +00:00
|
|
|
assets = [
|
2022-12-30 08:06:48 +00:00
|
|
|
[
|
|
|
|
"target/release/btm",
|
|
|
|
"usr/bin/",
|
|
|
|
"755",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"LICENSE",
|
|
|
|
"usr/share/doc/btm/",
|
|
|
|
"644",
|
|
|
|
],
|
|
|
|
[
|
|
|
|
"manpage/btm.1.gz",
|
|
|
|
"usr/share/man/man1/btm.1.gz",
|
|
|
|
"644",
|
|
|
|
],
|
2021-05-14 03:41:43 +00:00
|
|
|
[
|
2021-12-27 21:49:15 +00:00
|
|
|
"completion/btm.bash",
|
2021-05-14 03:41:43 +00:00
|
|
|
"usr/share/bash-completion/completions/btm",
|
|
|
|
"644",
|
|
|
|
],
|
|
|
|
[
|
2021-12-27 21:49:15 +00:00
|
|
|
"completion/btm.fish",
|
2021-05-14 03:41:43 +00:00
|
|
|
"usr/share/fish/vendor_completions.d/btm.fish",
|
|
|
|
"644",
|
|
|
|
],
|
2022-12-30 08:06:48 +00:00
|
|
|
[
|
|
|
|
"completion/_btm",
|
|
|
|
"usr/share/zsh/vendor-completions/",
|
|
|
|
"644",
|
|
|
|
],
|
2023-09-06 23:12:28 +00:00
|
|
|
[
|
|
|
|
"desktop/bottom.desktop",
|
|
|
|
"usr/share/applications/bottom.desktop",
|
|
|
|
"644",
|
|
|
|
],
|
2020-02-22 23:38:18 +00:00
|
|
|
]
|
2022-11-20 08:22:22 +00:00
|
|
|
extended-description = """
|
2020-08-31 21:50:21 +00:00
|
|
|
|
2022-11-20 08:22:22 +00:00
|
|
|
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.
|
2020-02-25 14:54:03 +00:00
|
|
|
"""
|
2020-08-24 01:22:31 +00:00
|
|
|
|
2022-05-28 20:14:25 +00:00
|
|
|
[package.metadata.deb.variants.arm64]
|
|
|
|
depends = "libc6:arm64 (>= 2.28)"
|
|
|
|
|
|
|
|
[package.metadata.deb.variants.armhf]
|
|
|
|
depends = "libc6:armhf (>= 2.28)"
|
|
|
|
|
2020-08-24 01:22:31 +00:00
|
|
|
[package.metadata.wix]
|
2020-08-24 01:39:53 +00:00
|
|
|
output = "bottom_x86_64_installer.msi"
|
2023-06-15 04:26:54 +00:00
|
|
|
|
|
|
|
[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" },
|
2023-09-06 23:12:28 +00:00
|
|
|
{ source = "desktop/bottom.desktop", dest = "/usr/share/applications/bottom.desktop", mode = "644" },
|
2023-06-15 04:26:54 +00:00
|
|
|
]
|
2024-01-01 10:34:53 +00:00
|
|
|
|
2024-05-07 06:03:30 +00:00
|
|
|
[lints.rust]
|
|
|
|
rust_2018_idioms = "deny"
|
2024-01-01 10:34:53 +00:00
|
|
|
# missing_docs = "deny"
|
|
|
|
|
2024-05-07 06:03:30 +00:00
|
|
|
[lints.rustdoc]
|
|
|
|
broken_intra_doc_links = "deny"
|
|
|
|
missing_crate_level_docs = "deny"
|
2024-01-01 10:34:53 +00:00
|
|
|
|
2024-05-07 06:03:30 +00:00
|
|
|
[lints.clippy]
|
|
|
|
todo = "deny"
|
|
|
|
unimplemented = "deny"
|
|
|
|
missing_safety_doc = "deny"
|