This crate can parse GPT and basic MBR partition tables.

Github CI crates.io

Documentation and Examples

https://docs.rs/bootsector

Limitations

MSRV

Rust 1.46 is supported, and checked by CI. Updating this is a semver bump.