Debian Codegraph @

Cargo.toml

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