1 stable release
1.0.0 | Aug 22, 2024 |
---|
#606 in Filesystem
5KB
Key Features • Installation • Usage • Platforms • Contributors • License
In a previous project, I needed to retrieve a list of all disk names. While I attempted to use the WinAPI, I found the process cumbersome and disliked the involving unsafe calls. As a result, I decided to implement my own solution using the Rust standard library.
Key Features
- Retrieve all disk names
Installation
Use the cargo add disk-name
command or add it manually to your cargo.toml file
[dependencies]
disk-name = "1.0.0"
Usage
The disk-name crate exposes one function to call.
fn main() {
let disk_names: Vec<String> = get_letters();
println!("{:#?}", disk_names);
}
With that simple call all existing letter names are printed.
Supported platforms
- Windows
- Linux
- MacOS
Contributors
License
- MIT license
- Copyright 2024 © ValuONE