Debian Codegraph @

Cargo.toml

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