Debian Codegraph @

Cargo.toml

raw symbols ◀ ▶
Source reconstructed at patch state 9 of 19 — not the installed (fully patched) source.
19 Debian patches touch this file
1 [package]
2 name = "bottom"
3 version = "0.14.9"
4 repository = "https://github.com/ClementTsang/bottom"
5 license = "MIT"
6 description = "A customizable cross-platform graphical process/system monitor for the terminal. Supports Linux, macOS, and Windows."
7 documentation = "https://bottom.pages.dev/stable"
8 readme = "README.md"
9 default-run = "btm"
10 build = "build.rs"
11 authors = ["Clement Tsang <[email protected]>"]
12 keywords = ["cross-platform", "monitoring", "cli", "top", "tui"]
13 categories = ["command-line-utilities", "visualization"]
14 exclude = [
15 ".cargo-husky/",
16 ".github/",
17 ".idea/",
18 ".vscode/",
19 "assets/",
20 "demos/",
21 "desktop/",
22 "docs/",
23 "flamegraphs/",
24 "sample_configs/",
25 "schema/",
26 "scripts/",
27 "wix/",
28 ".all-contributorsrc",
29 ".gitignore",
30 ".markdownlint.json",
31 "CHANGELOG.md",
32 "clippy.toml",
33 "codecov.yml",
34 "CONTRIBUTING.md",
35 "Cross.toml",
36 "debug.log",
37 "flamegraph.svg",
38 "profile.json.gz",
39 "rustfmt.toml",
40 ]
41 edition = "2024"
42 # The oldest version I've tested that should still build - note this is not an official MSRV!
43 rust-version = "1.95.0"
44
45 [lib]
46 test = true
47 doctest = true
48 doc = true
49
50 [[bin]]
51 name = "btm"
52 path = "src/bin/main.rs"
53 doc = false
54
55 [features]
56 # Used for general release builds.
57 battery = ["dep:starship-battery"]
58 nvidia = ["gpu", "dep:nvml-wrapper"]
59 gpu = []
60 zfs = []
61 deploy = ["battery", "nvidia", "zfs"]
62 default = ["deploy"]
63
64 # These features should not be included in release builds.
65 logging = ["fern", "log"]
66 generate_schema = ["schemars", "strum"]
67
68 [dependencies]
69 anyhow = "1.0.103"
70 clap = { version = "4.6.5", features = [
71 "default",
72 "cargo",
73 "wrap_help",
74 "derive",
75 ] }
76 concat-string = "1.0.1"
77 crossterm = "0.29.0"
78 ctrlc = { version = "3.5.2", features = ["termination"] }
79 dirs = "6.0.0"
80 humantime = "2.3.0"
81 indexmap = "2.14.0"
82 indoc = "2.0.7"
83 itertools = ">= 0.14.0, <= 0.15"
84 nvml-wrapper = { version = "0.12.1", optional = true, features = [
85 "legacy-functions",
86 ] }
87 ratatui = { version = "0.30.2", default-features = false, features = [
88 "unstable-rendered-line-info",
89 "layout-cache",
90 "crossterm",
91 ] }
92 ratatui-core = "0.1.2"
93 regex = "1.13.1"
94 rustc-hash = "2.1.3"
95 serde = { version = "1.0.228", features = ["derive"] }
96 starship-battery = { version = "0.11.1", optional = true }
97 sysinfo = "=0.39.6"
98 timeless = "0.1.0"
99 toml_edit = { version = "0.25.12", features = ["serde"] }
100 unicode-ellipsis = "0.6.0"
101 unicode-segmentation = "1.13.3"
102 unicode-width = "0.2.2"
103
104 # Used for logging. Mostly for dev-level debugging.
105 fern = { version = "0.7.1", optional = true }
106 log = { version = "0.4.33", optional = true }
107
108 # These are just used for JSON schema generation.
109 schemars = { version = "1.2.2", optional = true }
110 strum = { version = "0.28.0", features = ["derive"], optional = true }
111
112 [target.'cfg(unix)'.dependencies]
113 libc = "0.2.189"
114
115 [target.'cfg(target_os = "linux")'.dependencies]
116 rustix = { version = "1.1.4", features = ["fs", "param"] }
117
118 [dev-dependencies]
119 assert_cmd = "2.1.2"
120 predicates = "3.1.4"
121 tempfile = { version = "3.27.0", default-features = false }
122
123 [target.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.dev-dependencies]
124 portable-pty = "0.9.0"
125
126 [build-dependencies]
127 clap = { version = "4.6.5", features = [
128 "default",
129 "cargo",
130 "wrap_help",
131 "derive",
132 ] }
133 clap_complete = "4.6.8"
134 clap_complete_nushell = "4.6.1"
135 clap_complete_fig = "4.5.2"
136 clap_mangen = "0.3.0"
137 indoc = "2.0.7"
138
139 # Compile dependencies with optimizations enabled, even in debug mode.
140 [profile.dev.package."*"]
141 opt-level = 3
142
143 [profile.release]
144 debug = 0
145 strip = "symbols"
146 lto = true
147 opt-level = 3
148 codegen-units = 1
149
150 [profile.profiling]
151 inherits = "release"
152 debug = true
153 strip = false
154
155 [package.metadata.deb]
156 section = "utility"
157 assets = [
158 [
159 "target/release/btm",
160 "usr/bin/",
161 "755",
162 ],
163 [
164 "LICENSE",
165 "usr/share/doc/btm/",
166 "644",
167 ],
168 [
169 "manpage/btm.1.gz",
170 "usr/share/man/man1/btm.1.gz",
171 "644",
172 ],
173 [
174 "completion/btm.bash",
175 "usr/share/bash-completion/completions/btm",
176 "644",
177 ],
178 [
179 "completion/btm.fish",
180 "usr/share/fish/vendor_completions.d/btm.fish",
181 "644",
182 ],
183 [
184 "completion/_btm",
185 "usr/share/zsh/vendor-completions/",
186 "644",
187 ],
188 [
189 "desktop/bottom.desktop",
190 "usr/share/applications/bottom.desktop",
191 "644",
192 ],
193 [
194 "assets/icons/bottom-system-monitor.svg",
195 "/usr/share/icons/hicolor/scalable/apps/bottom-system-monitor.svg",
196 "644",
197 ],
198 ]
199 conflicts = "btm"
200 extended-description = """
201
202 By default, bottom will look for a config file in ~/.config/bottom/bottom.toml. A config file can be specified \
203 using `-C`. If a config file does not exist at the specified or default location, a default one will be created \
204 for the user there.
205 """
206
207 [package.metadata.deb.variants.arm64]
208 depends = "libc6:arm64 (>= 2.28)"
209
210 [package.metadata.deb.variants.armhf]
211 depends = "libc6:armhf (>= 2.28)"
212
213 [package.metadata.wix]
214 output = "bottom_installer.msi"
215 product-icon = "assets/icons/bottom.ico"
216
217 [package.metadata.generate-rpm]
218 assets = [
219 { source = "target/release/btm", dest = "/usr/bin/", mode = "755" },
220 { source = "LICENSE", dest = "/usr/share/doc/btm/", mode = "644" },
221 { source = "manpage/btm.1.gz", dest = "/usr/share/man/man1/btm.1.gz", mode = "644", doc = true },
222 { source = "completion/btm.bash", dest = "/usr/share/bash-completion/completions/btm", mode = "644" },
223 { source = "completion/btm.fish", dest = "/usr/share/fish/vendor_completions.d/btm.fish", mode = "644" },
224 { source = "completion/_btm", dest = "/usr/share/zsh/vendor-completions/", mode = "644" },
225 { source = "desktop/bottom.desktop", dest = "/usr/share/applications/bottom.desktop", mode = "644" },
226 { source = "assets/icons/bottom-system-monitor.svg", dest = "/usr/share/icons/hicolor/scalable/apps/bottom-system-monitor.svg", mode = "644" },
227 ]
228
229 [lints.rust]
230 rust_2018_idioms = "deny"
231 # missing_docs = "deny"
232
233 [lints.rustdoc]
234 broken_intra_doc_links = "deny"
235 private_intra_doc_links = "deny"
236 missing_crate_level_docs = "deny"
237
238 [lints.clippy]
239 todo = "deny"
240 unimplemented = "deny"
241 missing_safety_doc = "deny"
242 unwrap_used = "deny"