Debian Codegraph @

Cargo.toml

raw symbols ◀ ▶
Source reconstructed at patch state 0 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.104"
70 clap = { version = "4.6.6", 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.15.0"
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 [target.'cfg(target_os = "macos")'.dependencies]
119 core-foundation = "0.10.1"
120 mach2 = "0.6.0"
121
122 [target.'cfg(target_os = "windows")'.dependencies]
123 windows = { version = "0.62.2", features = [
124 "Win32_Foundation",
125 "Win32_Security",
126 "Win32_Storage_FileSystem",
127 "Win32_System_IO",
128 "Win32_System_Ioctl",
129 "Win32_System_Performance",
130 "Win32_System_ProcessStatus",
131 "Win32_System_Threading",
132 ] }
133
134 [target.'cfg(target_os = "freebsd")'.dependencies]
135 serde_json = { version = "1.0.151" }
136 sysctl = { version = "0.7.1" }
137
138 [dev-dependencies]
139 assert_cmd = "2.2.2"
140 predicates = "3.1.4"
141 tempfile = { version = "3.27.0", default-features = false }
142
143 [target.'cfg(all(target_arch = "x86_64", target_os = "linux"))'.dev-dependencies]
144 portable-pty = "0.9.0"
145
146 [build-dependencies]
147 clap = { version = "4.6.6", features = [
148 "default",
149 "cargo",
150 "wrap_help",
151 "derive",
152 ] }
153 clap_complete = "4.6.9"
154 clap_complete_nushell = "4.6.1"
155 clap_complete_fig = "4.5.2"
156 clap_mangen = "0.3.2"
157 indoc = "2.0.7"
158
159 # Compile dependencies with optimizations enabled, even in debug mode.
160 [profile.dev.package."*"]
161 opt-level = 3
162
163 [profile.release]
164 debug = 0
165 strip = "symbols"
166 lto = true
167 opt-level = 3
168 codegen-units = 1
169
170 [profile.profiling]
171 inherits = "release"
172 debug = true
173 strip = false
174
175 [package.metadata.deb]
176 section = "utility"
177 assets = [
178 [
179 "target/release/btm",
180 "usr/bin/",
181 "755",
182 ],
183 [
184 "LICENSE",
185 "usr/share/doc/btm/",
186 "644",
187 ],
188 [
189 "manpage/btm.1.gz",
190 "usr/share/man/man1/btm.1.gz",
191 "644",
192 ],
193 [
194 "completion/btm.bash",
195 "usr/share/bash-completion/completions/btm",
196 "644",
197 ],
198 [
199 "completion/btm.fish",
200 "usr/share/fish/vendor_completions.d/btm.fish",
201 "644",
202 ],
203 [
204 "completion/_btm",
205 "usr/share/zsh/vendor-completions/",
206 "644",
207 ],
208 [
209 "desktop/bottom.desktop",
210 "usr/share/applications/bottom.desktop",
211 "644",
212 ],
213 [
214 "assets/icons/bottom-system-monitor.svg",
215 "/usr/share/icons/hicolor/scalable/apps/bottom-system-monitor.svg",
216 "644",
217 ],
218 ]
219 conflicts = "btm"
220 extended-description = """
221
222 By default, bottom will look for a config file in ~/.config/bottom/bottom.toml. A config file can be specified \
223 using `-C`. If a config file does not exist at the specified or default location, a default one will be created \
224 for the user there.
225 """
226
227 [package.metadata.deb.variants.arm64]
228 depends = "libc6:arm64 (>= 2.28)"
229
230 [package.metadata.deb.variants.armhf]
231 depends = "libc6:armhf (>= 2.28)"
232
233 [package.metadata.wix]
234 output = "bottom_installer.msi"
235 product-icon = "assets/icons/bottom.ico"
236
237 [package.metadata.generate-rpm]
238 assets = [
239 { source = "target/release/btm", dest = "/usr/bin/", mode = "755" },
240 { source = "LICENSE", dest = "/usr/share/doc/btm/", mode = "644" },
241 { source = "manpage/btm.1.gz", dest = "/usr/share/man/man1/btm.1.gz", mode = "644", doc = true },
242 { source = "completion/btm.bash", dest = "/usr/share/bash-completion/completions/btm", mode = "644" },
243 { source = "completion/btm.fish", dest = "/usr/share/fish/vendor_completions.d/btm.fish", mode = "644" },
244 { source = "completion/_btm", dest = "/usr/share/zsh/vendor-completions/", mode = "644" },
245 { source = "desktop/bottom.desktop", dest = "/usr/share/applications/bottom.desktop", mode = "644" },
246 { source = "assets/icons/bottom-system-monitor.svg", dest = "/usr/share/icons/hicolor/scalable/apps/bottom-system-monitor.svg", mode = "644" },
247 ]
248
249 [lints.rust]
250 rust_2018_idioms = "deny"
251 # missing_docs = "deny"
252
253 [lints.rustdoc]
254 broken_intra_doc_links = "deny"
255 private_intra_doc_links = "deny"
256 missing_crate_level_docs = "deny"
257
258 [lints.clippy]
259 todo = "deny"
260 unimplemented = "deny"
261 missing_safety_doc = "deny"
262 unwrap_used = "deny"