amdgpu-syfs-rs
This library allows you to interact with the Linux Kernel SysFS interface for GPUs (mainly targeted at the AMDGPU driver).
Basic usage:
let sysfs_path = from_str.unwrap;
let gpu_controller = new_from_path.unwrap;
let gpu_usage = gpu_controller.get_busy_percent.unwrap;
let total_vram = gpu_controller.get_total_vram.unwrap;