- Bump MSRV to 1.65
- implement Clone for GptDisk
- relax trait bounds on some functions of GptDisk
- remove
Partition::size
and replace it withsectors_len
which returns the correct number of sectors GptDisk::{primary_header, backup_header, try_header}
now return an error instead of justOption
- Opening a
GptDisk
now succeeds even if one header is invalid (use theonly_valid_headers
config flag to get the old behaviour back)
-
Bump MSRV to 1.63
-
Remove initialized state & configuration
-
add the option to allow the partition count to be changed
-
add the option to only open a disk if both headers are valid
-
add the option to keep the backup partition readonly
-
split
GptDisk::remove_partition
into two functionsremove_partition
andremove_partition_by_guid
-
add
GptDisk::header
function which allows to get the current header (either primary or backup) -
add
GptDisk::take_partitions
-
remove
GptDisk::update_partitions_safe
and replace it with a config optionreadonly_backup
-
remove
GptDisk::update_partitions_embedded
and replace it with the config optionchange_partition_count
-
add
GptDisk::device_ref
-
add
GptDisk::device_mut
-
crc32 are now stored in the header after it has been written instead of always being zeros
-
Add DragonFlyBSD as partition and OS type
-
GptDisk
now accepts a genericDiskDevice
-
add ChromeOS RWFW partition type
-
improve error reporting, returning
HeaderError
or the newGptError
-
add
HeaderBuilder
to simplify creating a header (replaces Header::compute_new) -
add
GptDisk::take_device
-
Support custom partition GUIDs
-
logging is now optional use the
log
ortracing
feature to use the appropriate logging crate