Crates.io | drives |
lib.rs | drives |
version | 0.6.0 |
source | src |
created_at | 2023-03-11 20:39:53.414636 |
updated_at | 2024-01-27 20:28:30.934815 |
description | Library listing mounted or mountable drives on linux |
homepage | |
repository | https://github.com/sorcerersr/drives |
max_upload_size | |
id | 807524 |
size | 1,097,790 |
A rust library (crate) for listing mounted or mountable drives on linux (flash drives, sd-cards, etc.)
Uses the virtual kernel filesystems (/sys, /proc and /dev) to gather information about the block devices known by the linux kernel. Optionally reads the GUID Partition Table (GPT) to enrich gathered data with informations from the partition table.
For an simple example see simple_main.rs:
cargo run --example simple_main
Documentation can be found on docs.rs.
Currently only the UUID for a device and the PART_UUID of partitions are retreived using the GPT. This needs the feature "gpt" to be enabled.
Licensed under either of Apache License, Version 2.0 or MIT license at your option.