| Crates.io | devpath |
| lib.rs | devpath |
| version | 1.0.1 |
| created_at | 2025-09-24 19:22:32.613439+00 |
| updated_at | 2025-09-24 19:31:32.277684+00 |
| description | UEFI Device Path parsing library |
| homepage | |
| repository | https://github.com/AMDEPYC/devpath |
| max_upload_size | |
| id | 1853647 |
| size | 125,211 |
A no_std Rust library for parsing and manipulating UEFI device paths as defined in the UEFI 2.11 specification.
cargo add devpath
use devpath::{Paths, FromBytes};
// Parse device paths from raw bytes
let raw_bytes = &[
0x02, 0x01, 0x0c, 0x00, // ACPI device path
0xd0, 0x41, 0x03, 0x0a, // HID: PNP0A03 (PCI Root Bridge)
0x00, 0x00, 0x00, 0x00, // UID: 0
0x01, 0x01, 0x06, 0x00, // PCI device path
0x00, 0x1f, // Function: 0, Device: 31
0x7f, 0xff, 0x04, 0x00, // End of device path
];
let paths = Paths::from_bytes(raw_bytes)?;
println!("Parsed {} device path(s)", paths.len());
Full API documentation is available on docs.rs.
This project is licensed under the MIT License.