Registry / utility / gpt
library4.1.0rscratesunverified

A pure-Rust library to work with GPT partition tables.

# Cargo.toml [dependencies] gpt = "4.1.0"
INSTALL
IMPORT
SIG · GPT
G
gpt
utilityrustv4.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GptDisk
use gpt::GptDisk;

Open a GPT disk and read its GUID.

use gpt::GptDisk; fn main() { let disk = GptDisk::new_from_file("/dev/sda").unwrap(); println!("Disk GUID: {}", disk.guid); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
4.1.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
gpt — cargo add gpt · libregistry