win_partitions

Crates.iowin_partitions
lib.rswin_partitions
version0.3.0
sourcesrc
created_at2021-09-12 15:08:30.266892
updated_at2021-09-13 05:58:21.932498
descriptionProvides list of system partitions and their information for Windows
homepage
repository
max_upload_size
id450124
size14,880
Hamed J.I (hamed-ji)

documentation

README

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!();
    }
}
Commit count: 0

cargo fmt