3 releases (breaking)
0.3.0 | Sep 13, 2021 |
---|---|
0.2.0 | Sep 13, 2021 |
0.1.0 | Sep 12, 2021 |
#52 in #partition
12KB
209 lines
win-partitions
A Rust crate to get windows partitions list and their information using Windows API.
Example
use win_partitions::windows_partition::get_partitions;
fn main() {
let list = get_partitions();
for i in list.unwrap() {
println!("Drive {} ({})", i.letter, i.name);
println!("Ready: {}", i.ready);
println!("File System: {}", i.file_system_name);
println!("Free Space: {} / {} Bytes", i.free_space, i.size);
println!();
}
}
Dependencies
~123MB
~2M SLoC