Skip to content

Latest commit

 

History

43 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

disket

crates.io docs.rs build license

disket is a Rust cross-platform library for managing disks and volumes. It provides high-level APIs for mount/unmounting, fetching information and watching arrival/removal of devices.

Usage

To start using disket, add this to your Cargo.toml:

[dependencies]
disket = "0.1.0"

This will add the set of default features. Check the documentation for other features.

The following block shows some basic functionality. It retrieves disks, mounts every partition and does the same whenever a new device arrives.

fn main() -> Result<(), Box<dyn Error>> {
    todo!()
}

Supported platforms

Check the support section of the documentation.

Contributing

Contributions are very much welcome. You can just make a PR, and we'll discuss right there if needed. If it is something you are not so sure about or anything that changes the public API, open an issue.

New platforms don't need to be available for every module, but they should be fully compatible with the abstraction layer of the module they are in. A new platform for the mount module should be compatible with its public API.

About

Cross-platform crate for disks/volumes management

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages