disk_list is both an executable binary that can be run, and a library that can be used in Rust programs.

Installing the command-line executable

Assuming you have Rust/Cargo installed, run this command in a terminal:

cargo install disk_list

It will make the disk_list command available in your PATH if you've allowed the PATH to be modified when installing Rust. cargo uninstall disk_list uninstalls.

Adding disk_list library as a dependency

Run this command in a terminal, in your project's directory:

cargo add disk_list

To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:

disk_list = "0.2.10"

The disk_list library will be automatically available globally. Read the disk_list library documentation.

Back to the crate overview.