disk-name

Crates.iodisk-name
lib.rsdisk-name
version1.0.0
sourcesrc
created_at2024-08-22 08:41:40.590031
updated_at2024-08-22 08:41:40.590031
descriptionA utility crate to get all existing disk names
homepage
repositoryhttps://github.com/ValuONE/disk-name
max_upload_size
id1347437
size8,578
Valentin Piendl (ValuONE)

documentation

README



Language Stars Issues Forks

Key FeaturesInstallationUsagePlatformsContributorsLicense

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

  1. Windows
  2. Linux
  3. MacOS

Contributors


License

GitHub license


Commit count: 0

cargo fmt