bottom/Cargo.toml

166 lines
4.5 KiB
TOML
Raw Normal View History

2019-09-04 03:27:25 +00:00
[package]
name = "bottom"
version = "0.6.9"
authors = ["Clement Tsang <cjhtsang@uwaterloo.ca>"]
2019-09-04 03:27:25 +00:00
edition = "2018"
repository = "https://github.com/ClementTsang/bottom"
2020-02-22 23:41:13 +00:00
keywords = ["cross-platform", "monitoring", "cli", "top", "tui"]
license = "MIT"
2020-02-19 05:16:40 +00:00
categories = ["command-line-utilities", "visualization"]
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"
default-run = "btm"
build = "build.rs"
exclude = [
".cargo-husky/",
".github/",
"assets/",
"scripts/",
"docs/",
"sample_configs/",
".all-contributorsrc",
".cirrus.yml",
".markdownlint.json",
"CHANGELOG.md",
"clippy.toml",
"codecov.yml",
"CONTRIBUTING.md",
"Cross.toml",
"rustfmt.toml",
]
2019-09-04 03:27:25 +00:00
2019-10-19 20:29:04 +00:00
[[bin]]
name = "btm"
path = "src/bin/main.rs"
doc = false
2019-09-04 03:27:25 +00:00
[lib]
test = true
doctest = true
doc = true
2020-01-04 21:07:35 +00:00
[profile.release]
debug = 0
strip = "symbols"
lto = true
2020-02-17 23:13:13 +00:00
opt-level = 3
codegen-units = 1
2020-01-04 21:07:35 +00:00
[features]
battery = ["starship-battery"]
2022-02-12 21:40:33 +00:00
gpu = ["nvidia"]
nvidia = ["nvml-wrapper"]
zfs = ["sysctl"]
# The features we use by default.
default = ["fern", "log", "battery", "gpu", "zfs"]
# The features we use on deploy. Logging is not included as that is primarily (for now) just for debugging locally.
deploy = ["battery", "gpu", "zfs"]
2019-09-04 03:27:25 +00:00
[dependencies]
anyhow = "1.0.57"
backtrace = "0.3.65"
cfg-if = "1.0.0"
clap = { version = "3.1.12", features = ["default", "cargo", "wrap_help"] }
const_format = "0.2.30"
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"
crossterm = "0.25.0"
2022-09-08 03:51:08 +00:00
ctrlc = { version = "3.1.9", features = ["termination"] }
dirs = "4.0.0"
2022-09-08 03:51:08 +00:00
fern = { version = "0.6.1", optional = true }
futures = "0.3.21"
futures-timer = "3.0.2"
fxhash = "0.2.1"
humantime = "2.1.0"
humantime-serde = "1.1.1"
indexmap = "1.8.1"
itertools = "0.10.3"
kstring = { version = "2.0.0", features = ["arc"] }
2022-09-08 03:51:08 +00:00
log = { version = "0.4.16", optional = true }
phf = { version = "0.11", features = ["macros"] }
2022-11-05 06:12:31 +00:00
nvml-wrapper = { version = "0.8.0", optional = true }
once_cell = "1.5.2"
regex = "1.5.5"
serde = { version = "1.0.136", features = ["derive"] }
2022-09-08 03:51:08 +00:00
starship-battery = { version = "0.7.9", optional = true }
2022-11-04 23:38:14 +00:00
sysinfo = "0.26.7"
thiserror = "1.0.30"
time = { version = "0.3.9", features = ["formatting", "macros"] }
toml = "0.5.9"
tui = "0.19.0"
typed-builder = "0.10.0"
unicode-segmentation = "1.9.0"
unicode-width = "0.1.9"
2019-09-15 01:22:57 +00:00
[target.'cfg(unix)'.dependencies]
libc = "0.2.124"
[target.'cfg(target_os = "linux")'.dependencies]
heim = { version = "0.1.0-rc.1", features = ["cpu", "disk", "net", "sensors"] }
procfs = { version = "0.14.1", default-features = false }
smol = "1.2.5"
[target.'cfg(target_os = "macos")'.dependencies]
heim = { version = "0.1.0-rc.1", features = ["cpu", "disk", "memory", "net"] }
mach2 = "0.4.1"
[target.'cfg(target_os = "windows")'.dependencies]
heim = { version = "0.1.0-rc.1", features = ["cpu", "disk", "memory"] }
winapi = "0.3.9"
2020-02-29 02:15:36 +00:00
[target.'cfg(target_os = "freebsd")'.dependencies]
serde_json = { version = "1.0.82" }
sysctl = { version = "0.5.2", optional = true }
filedescriptor = "0.8.2"
2019-09-15 01:22:57 +00:00
[dev-dependencies]
assert_cmd = "2.0.4"
predicates = "2.1.1"
2020-02-22 23:38:18 +00:00
[build-dependencies]
clap = { version = "3.1.12", features = ["default", "cargo", "wrap_help"] }
clap_complete = "3.1.2"
clap_mangen = "0.1.6"
2020-02-22 23:38:18 +00:00
[package.metadata.deb]
section = "utility"
2020-02-22 23:38:18 +00:00
assets = [
2022-11-04 23:38:14 +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"],
[
"completion/btm.bash",
"usr/share/bash-completion/completions/btm",
"644",
],
[
"completion/btm.fish",
"usr/share/fish/vendor_completions.d/btm.fish",
"644",
],
2022-11-04 23:38:14 +00:00
["completion/_btm", "usr/share/zsh/vendor-completions/", "644"],
2020-02-22 23:38:18 +00:00
]
extended-description = """\
A customizable cross-platform graphical process/system monitor for the terminal. Supports Linux, macOS, and Windows.
2020-02-22 23:38:18 +00:00
By default, bottom will look for a config file in ~/.config/bottom/bottom.toml.
If one is not specified it will fall back to defaults. If a config file does not
exist at the specified or default location, a blank one will be created for the user.
"""
2020-08-24 01:22:31 +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"
[dev-dependencies.cargo-husky]
version = "1"
default-features = false
features = ["user-hooks"]