Debian Codegraph @

Cargo.toml

raw symbols ◀ ▶
Source reconstructed at patch state 17 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
67 [dependencies]
68 anyhow = "1.0.103"
69 clap = { version = "4.6.5", features = [
70 "default",
71 "cargo",
72 "wrap_help",
73 "derive",
74 ] }
75 concat-string = "1.0.1"
76 crossterm = "0.29.0"
77 ctrlc = { version = "3.5.2", features = ["termination"] }
78 dirs = "6.0.0"
79 humantime = "2.3.0"
80 indexmap = "2.14.0"
81 indoc = "2.0.7"
82 itertools = ">= 0.14.0, <= 0.15"
83 nvml-wrapper = { version = ">= 0.11.0, <= 0.12", optional = true, features = [
84 "legacy-functions",
85 ] }
86 ratatui = { version = "0.30.2", default-features = false, features = [
87 "unstable-rendered-line-info",
88 "layout-cache",
89 "crossterm",
90 ] }
91 ratatui-core = "0.1.2"
92 regex = "1.13.1"
93 rustc-hash = "2.1.2"
94 serde = { version = "1.0.228", features = ["derive"] }
95 starship-battery = { version = "0.11.1", optional = true }
96 sysinfo = "0.39.5"
97 timeless = "0.1.0"
98 toml_edit = { version = "0.25.12", features = ["serde"] }
99 unicode-segmentation = "1.13.2"
100 unicode-width = "0.2.2"
101
102 # Used for logging. Mostly for dev-level debugging.
103 fern = { version = "0.7.1", optional = true }
104 log = { version = "0.4.33", optional = true }
105
106 [target.'cfg(unix)'.dependencies]
107 libc = "0.2.186"
108
109 [target.'cfg(target_os = "linux")'.dependencies]
110 rustix = { version = "1.1.4", features = ["fs", "param"] }
111
112 [dev-dependencies]
113 assert_cmd = "2.1.2"
114 predicates = "3.1.4"
115 tempfile = { version = "3.27.0", default-features = false }
116
117 [target.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.dev-dependencies]
118 portable-pty = "0.9.0"
119
120 [build-dependencies]
121 clap = { version = "4.6.5", features = [
122 "default",
123 "cargo",
124 "wrap_help",
125 "derive",
126 ] }
127 clap_complete = "4.6.8"
128 clap_complete_nushell = "4.6.1"
129 clap_mangen = "0.3.0"
130 indoc = "2.0.7"
131
132 # Compile dependencies with optimizations enabled, even in debug mode.
133 [profile.dev.package."*"]
134 opt-level = 3
135
136 [profile.release]
137 debug = 0
138 strip = "symbols"
139 lto = true
140 opt-level = 3
141 codegen-units = 1
142
143 [profile.profiling]
144 inherits = "release"
145 debug = true
146 strip = false
147
148 [package.metadata.deb]
149 section = "utility"
150 assets = [
151 [
152 "target/release/btm",
153 "usr/bin/",
154 "755",
155 ],
156 [
157 "LICENSE",
158 "usr/share/doc/btm/",
159 "644",
160 ],
161 [
162 "manpage/btm.1.gz",
163 "usr/share/man/man1/btm.1.gz",
164 "644",
165 ],
166 [
167 "completion/btm.bash",
168 "usr/share/bash-completion/completions/btm",
169 "644",
170 ],
171 [
172 "completion/btm.fish",
173 "usr/share/fish/vendor_completions.d/btm.fish",
174 "644",
175 ],
176 [
177 "completion/_btm",
178 "usr/share/zsh/vendor-completions/",
179 "644",
180 ],
181 [
182 "desktop/bottom.desktop",
183 "usr/share/applications/bottom.desktop",
184 "644",
185 ],
186 [
187 "assets/icons/bottom-system-monitor.svg",
188 "/usr/share/icons/hicolor/scalable/apps/bottom-system-monitor.svg",
189 "644",
190 ],
191 ]
192 conflicts = "btm"
193 extended-description = """
194
195 By default, bottom will look for a config file in ~/.config/bottom/bottom.toml. A config file can be specified \
196 using `-C`. If a config file does not exist at the specified or default location, a default one will be created \
197 for the user there.
198 """
199
200 [package.metadata.deb.variants.arm64]
201 depends = "libc6:arm64 (>= 2.28)"
202
203 [package.metadata.deb.variants.armhf]
204 depends = "libc6:armhf (>= 2.28)"
205
206 [package.metadata.wix]
207 output = "bottom_installer.msi"
208 product-icon = "assets/icons/bottom.ico"
209
210 [package.metadata.generate-rpm]
211 assets = [
212 { source = "target/release/btm", dest = "/usr/bin/", mode = "755" },
213 { source = "LICENSE", dest = "/usr/share/doc/btm/", mode = "644" },
214 { source = "manpage/btm.1.gz", dest = "/usr/share/man/man1/btm.1.gz", mode = "644", doc = true },
215 { source = "completion/btm.bash", dest = "/usr/share/bash-completion/completions/btm", mode = "644" },
216 { source = "completion/btm.fish", dest = "/usr/share/fish/vendor_completions.d/btm.fish", mode = "644" },
217 { source = "completion/_btm", dest = "/usr/share/zsh/vendor-completions/", mode = "644" },
218 { source = "desktop/bottom.desktop", dest = "/usr/share/applications/bottom.desktop", mode = "644" },
219 { source = "assets/icons/bottom-system-monitor.svg", dest = "/usr/share/icons/hicolor/scalable/apps/bottom-system-monitor.svg", mode = "644" },
220 ]
221
222 [lints.rust]
223 rust_2018_idioms = "deny"
224 # missing_docs = "deny"
225
226 [lints.rustdoc]
227 broken_intra_doc_links = "deny"
228 private_intra_doc_links = "deny"
229 missing_crate_level_docs = "deny"
230
231 [lints.clippy]
232 todo = "deny"
233 unimplemented = "deny"
234 missing_safety_doc = "deny"
235 unwrap_used = "deny"