14 releases
Uses new Rust 2024
| new 0.2.6 | Apr 27, 2026 |
|---|---|
| 0.2.5 | Mar 4, 2025 |
| 0.2.4 | Feb 12, 2025 |
| 0.1.0 | Apr 26, 2024 |
| 0.0.6 | Apr 26, 2024 |
#1824 in Command line utilities
57KB
1.5K
SLoC
vkfetch-rs
vkfetch-rs prints Vulkan GPU information with vendor ASCII art. It is a Rust rewrite of Wunkolo/vkfetch, with the original art ported and a few extra device capability fields.
Install
You need a Vulkan loader at runtime.
cargo install vkfetch-rs
Build
git clone https://github.com/float3/vkfetch-rs
cd vkfetch-rs
cargo build
The default build links against the Vulkan loader. Use the dynamic-loading feature when you want the binary to load Vulkan at runtime instead:
cargo build --no-default-features --features loaded
Nix users can enter a shell with the Vulkan loader, linker, rustup, and cargo-edit available:
nix develop
Development
The repository pins stable Rust with rustfmt and clippy in rust-toolchain.toml.
cargo fmt --all -- --check
cargo check --workspace --all-targets --all-features
cargo clippy --workspace --all-targets --all-features -- -D warnings
cargo test --workspace --all-targets --all-features
cargo check --workspace --all-targets --no-default-features --features loaded
RUSTDOCFLAGS="-D warnings" cargo doc --workspace --all-features --no-deps
nix flake check --print-build-logs
Useful maintenance commands:
cargo clippy --fix --workspace --all-targets --all-features --allow-dirty --allow-staged -- -D warnings
cargo upgrade -i
cargo update
Release
Bump package.version in Cargo.toml and keep Cargo.lock in sync with cargo update. After that bump lands on master or main, CI runs the Rust and Nix checks, creates tag vX.Y.Z, and publishes a GitHub release with generated release notes.
Dependencies
~5.5MB
~125K SLoC