Debian Codegraph @

Cargo.toml

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