rsdisk
Imagine fdisk but it's a Rust library (and also a cli but that's not so important)
WARNING: This is NOT ready for normal use! API is unstable, that's why it's version 0.0.z. Do NOT use it unless you know what you are doing.
Warning 2: rsdisk binary is pretty basic. However it has currently all built-in program functionality implemented. It CAN overwrite your drive's partition table (however it required setting --execute flag, if it's not set all commands are treated as dry-run), so be careful with it! To install it you have to include "build-binary" feature (cargo install rsdisk -F build-binary). I am NOT liable for any damages caused by it. You have been warned.
Current features
- Recognizing GPT or MBR partition table on drive
- Basic MBR parition table support (currently only limited to reading 4 partition entries)
- Utility functions that can read drive size in sectors, read drive logical sector size and refresh partition table of given drive.
- Ok-ayish error handling
- Basic partition table trait (will def be changed in the future)
- Ability to extend library to new partitions
- Very basic cli app
Planned features (non-exhaustive, semi-random order)
- Making library more stable, aka making it useable
- Documentation
- More higher-level functions
- GPT partition table support
- CLI/TUI fdisk-like program
- Support for non-unix operating systems
- Better testing