rsdisk

Crates.iorsdisk
lib.rsrsdisk
version0.0.12
sourcesrc
created_at2024-07-05 01:24:15.377586
updated_at2024-08-05 10:53:10.494659
descriptionImagine fdisk but it's a Rust library (and also a cli but that's not so important)
homepagehttps://codeberg.org/MicroPanda123/rsdisk
repository
max_upload_size
id1292266
size2,148,622
(MicroPanda123)

documentation

README

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.

License switch

Short notice that I've switched license from GPL v3 to MPL v2 since it's more permissive for library usage and I felt it's more appropriate here.

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
Commit count: 0

cargo fmt