-
Notifications
You must be signed in to change notification settings - Fork 18
/
Cargo.toml
90 lines (78 loc) · 2.82 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
[package]
name = "amdgpu_top"
version = "0.10.1"
edition = "2021"
license = "MIT"
repository = "https://github.com/Umio-Yasuno/amdgpu_top"
authors = ["Umio Yasuno <[email protected]>"]
description = """
Tool to displays AMDGPU usage.
The tool displays information gathered from performance counters (GRBM, GRBM2), sensors, fdinfo, gpu_metrics and AMDGPU driver.
"""
exclude = [
"docs/",
"assets/"
]
build = "build.rs"
[features]
default = [ "tui", "gui", "json", "git_version" ]
package = [ "tui", "gui", "json" ]
gui = ["dep:amdgpu_top_gui"]
tui = ["dep:amdgpu_top_tui"]
json = ["dep:amdgpu_top_json", "dep:libc"]
git_version = ["dep:gix"]
[[bin]]
name = "amdgpu_top"
path = "src/main.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[workspace]
members = [
"crates/libamdgpu_top",
"crates/amdgpu_top_tui",
"crates/amdgpu_top_gui",
"crates/amdgpu_top_json",
]
[workspace.package]
version = "0.10.1"
edition = "2021"
authors = ["Umio Yasuno <[email protected]>"]
repository = "https://github.com/Umio-Yasuno/amdgpu_top"
[workspace.dependencies]
libamdgpu_top = { path = "crates/libamdgpu_top", version = "0.10.1", features = ["libdrm_link"] }
[dependencies]
libamdgpu_top = { workspace = true }
amdgpu_top_tui = { path = "crates/amdgpu_top_tui/", version = "0.10.1", optional = true }
amdgpu_top_gui = { path = "crates/amdgpu_top_gui/", version = "0.10.1", optional = true }
amdgpu_top_json = { path = "crates/amdgpu_top_json/", version = "0.10.1", optional = true }
libc = { version = "0.2", optional = true }
[build-dependencies]
gix = { version = "0.64", default-features = false, optional = true }
[profile.release]
opt-level = 2
strip = true
lto = true
codegen-units = 1
# cargo-deb
[package.metadata.deb]
depends = "libc6, libgcc-s1, libdrm2, libdrm-amdgpu1"
section = "utils"
assets = [
["target/release/amdgpu_top", "usr/bin/", "755"],
["assets/amdgpu_top.desktop", "usr/share/applications/", "644"],
["assets/amdgpu_top-tui.desktop", "usr/share/applications/", "644"],
["assets/io.github.umio_yasuno.amdgpu_top.metainfo.xml", "usr/share/metainfo/", "644"],
["docs/amdgpu_top.1", "usr/share/man/man1/", "644"],
]
# cargo-generate-rpm
[package.metadata.generate-rpm]
auto-req = "libdrm"
assets = [
{ source = "target/release/amdgpu_top", dest = "/usr/bin/", mode = "755" },
{ source = "assets/amdgpu_top.desktop", dest = "/usr/share/applications/", mode = "644" },
{ source = "assets/amdgpu_top-tui.desktop", dest = "/usr/share/applications/", mode = "644" },
{ source = "assets/io.github.umio_yasuno.amdgpu_top.metainfo.xml", dest = "/usr/share/metainfo/", mode = "644" },
{ source = "docs/amdgpu_top.1", dest = "/usr/share/man/man1/", mode = "644" },
]
# cargo-appimage
[package.metadata.appimage]
assets = ["assets/"]