mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-13 07:57:15 +00:00
837c382ee9
Refactors to use only heim for Linux builds. This is now much easier to do since the 0.1 version of heim works fine for ARM. This is ideal since having to rely on two separate sources of data isn't the greatest if we can avoid it. Sysinfo is still required for macOS and Windows, though. Temperature sensors do not work for those from heim, and for some reason, networks also don't work on Windows with heim...? My personal CPU core calculation is also currently Linux-only, and as such, I'll still rely on sysinfo for Windows and macOS for now. This isn't really a big optimization or anything btw. Just something I wanted to try.
105 lines
3 KiB
TOML
105 lines
3 KiB
TOML
[package]
|
|
name = "bottom"
|
|
version = "0.5.6"
|
|
authors = ["Clement Tsang <cjhtsang@uwaterloo.ca>"]
|
|
edition = "2018"
|
|
repository = "https://github.com/ClementTsang/bottom"
|
|
keywords = ["cross-platform", "monitoring", "cli", "top", "tui"]
|
|
license = "MIT"
|
|
categories = ["command-line-utilities", "visualization"]
|
|
description = "A cross-platform graphical process/system monitor with a customizable interface and a multitude of features. Supports Linux, macOS, and Windows."
|
|
readme = "README.md"
|
|
default-run = "btm"
|
|
build = "build.rs"
|
|
|
|
[[bin]]
|
|
name = "btm"
|
|
path = "src/bin/main.rs"
|
|
doc = false
|
|
|
|
[profile.release]
|
|
debug = 0
|
|
lto = true
|
|
# debug = true
|
|
# lto = false
|
|
opt-level = 3
|
|
codegen-units = 1
|
|
|
|
[features]
|
|
default = ["fern", "log"]
|
|
|
|
[dependencies]
|
|
anyhow = "1.0.35"
|
|
backtrace = "~0.3"
|
|
battery = "0.7.8"
|
|
beef = "0.4.4"
|
|
chrono = "0.4.19"
|
|
crossterm = "0.18.2"
|
|
ctrlc = { version = "3.1", features = ["termination"] }
|
|
clap = "2.33"
|
|
dirs-next = "2.0.0"
|
|
fnv = "1.0.7"
|
|
futures = "0.3.8"
|
|
indexmap = "~1.6"
|
|
itertools = "0.9.0"
|
|
once_cell = "1.5.2"
|
|
regex = "1.4.2"
|
|
serde = { version = "~1.0", features = ["derive"] }
|
|
sysinfo = "0.15.3"
|
|
thiserror = "1.0.22"
|
|
toml = "0.5.7"
|
|
tui = { version = "0.13.0", features = ["crossterm"], default-features = false }
|
|
typed-builder = "0.8.0"
|
|
unicode-segmentation = "1.7.1"
|
|
unicode-width = "0.1"
|
|
|
|
# For debugging only... disable on release builds with --no-default-target for no? TODO: Redo this.
|
|
fern = { version = "0.6.0", optional=true }
|
|
log = { version = "0.4.11", optional=true }
|
|
|
|
[target.'cfg(unix)'.dependencies]
|
|
libc = "~0.2"
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
heim = { version = "0.1.0-rc.1", features = ["cpu", "disk", "memory", "net", "sensors"] }
|
|
futures-timer = "3.0.2"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
heim = { version = "0.1.0-rc.1", features = ["disk", "memory", "net"] }
|
|
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
heim = { version = "0.1.0-rc.1", features = ["disk", "memory"] }
|
|
winapi = "0.3.9"
|
|
|
|
[dev-dependencies]
|
|
assert_cmd = "~1.0"
|
|
predicates = "1"
|
|
|
|
[build-dependencies]
|
|
clap = "2.33"
|
|
|
|
[package.metadata.deb]
|
|
section = "utility"
|
|
assets = [
|
|
["target/release/btm", "usr/bin/", "755"],
|
|
["LICENSE", "usr/share/doc/btm/", "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"],
|
|
]
|
|
extended-description = """\
|
|
A cross-platform graphical process/system monitor with a customizable interface and a multitude of
|
|
features. Supports Linux, macOS, and Windows.
|
|
|
|
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.
|
|
"""
|
|
|
|
[package.metadata.wix]
|
|
output = "bottom_x86_64_installer.msi"
|
|
|
|
[dev-dependencies.cargo-husky]
|
|
version = "1"
|
|
default-features = false
|
|
features = ["user-hooks"]
|