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_handle = new_from_path.await.unwrap;
let gpu_usage = gpu_handle.get_busy_percent.await.unwrap;
let total_vram = gpu_handle.get_total_vram.await.unwrap;