# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "amdgpu_top" version = "0.9.2" authors = ["Umio Yasuno "] build = "build.rs" exclude = [ "docs/", "assets/", ] autobins = false autoexamples = false autotests = false autobenches = false description = """ Tool to displays AMDGPU usage. The tool displays information gathered from performance counters (GRBM, GRBM2), sensors, fdinfo, gpu_metrics and AMDGPU driver. """ readme = "README.md" license = "MIT" repository = "https://github.com/Umio-Yasuno/amdgpu_top" [package.metadata.appimage] assets = ["assets/"] [package.metadata.deb] 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", ], [ "docs/amdgpu_top.1", "usr/share/man/man1/", "644", ], ] depends = "libc6, libgcc-s1, libdrm2, libdrm-amdgpu1" section = "utils" [package.metadata.generate-rpm] auto-req = "libdrm" [[package.metadata.generate-rpm.assets]] dest = "/usr/bin/" mode = "755" source = "target/release/amdgpu_top" [[package.metadata.generate-rpm.assets]] dest = "/usr/share/applications/" mode = "644" source = "assets/amdgpu_top.desktop" [[package.metadata.generate-rpm.assets]] dest = "/usr/share/applications/" mode = "644" source = "assets/amdgpu_top-tui.desktop" [[package.metadata.generate-rpm.assets]] dest = "/usr/share/man/man1/" mode = "644" source = "docs/amdgpu_top.1" [profile.release] opt-level = 2 lto = true codegen-units = 1 strip = true [[bin]] name = "amdgpu_top" path = "src/main.rs" [dependencies.amdgpu_top_gui] version = "0.9.2" optional = true [dependencies.amdgpu_top_json] version = "0.9.2" optional = true [dependencies.amdgpu_top_tui] version = "0.9.2" optional = true [dependencies.libamdgpu_top] version = "0.9.2" [dependencies.libc] version = "0.2.*" optional = true [build-dependencies.gix] version = "0.64" optional = true default-features = false [features] default = [ "tui", "gui", "json", "git_version", ] git_version = ["dep:gix"] gui = ["dep:amdgpu_top_gui"] json = [ "dep:amdgpu_top_json", "dep:libc", ] package = [ "tui", "gui", "json", ] tui = ["dep:amdgpu_top_tui"]