Skip to content

Commit

Permalink
Publish v4.0.0-rc.3
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenmeier committed Apr 21, 2024
1 parent 8929bed commit bf23b74
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 27 deletions.
59 changes: 33 additions & 26 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,46 @@
### v4.0.0-rc.2 (2024-04-04)
### v4.0.0-rc.3 (2024-04-21)

#### Changes

* remove `Partition::size` and replace it with `sectors_len` which returns the correct number of sectors
* `GptDisk::{primary_header, backup_header, try_header}` now return an error instead of just `Option`
- Bump MSRV to 1.65
- implement Clone for GptDisk
- relax trait bounds on some functions of GptDisk

### v4.0.0-rc.2 (2024-04-04)

#### Changes

- remove `Partition::size` and replace it with `sectors_len` which returns the correct number of sectors
- `GptDisk::{primary_header, backup_header, try_header}` now return an error instead of just `Option`

### v4.0.0-rc.1 (2023-11-18)

#### Behaviour changes

* Opening a `GptDisk` now succeeds even if one header is invalid
- Opening a `GptDisk` now succeeds even if one header is invalid
(use the `only_valid_headers` config flag to get the old behaviour back)

#### Changes

* 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 functions `remove_partition` and `remove_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 option `readonly_backup`
* remove `GptDisk::update_partitions_embedded` and replace it with the config option `change_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 generic `DiskDevice`
* add ChromeOS RWFW partition type
* improve error reporting, returning `HeaderError` or the new `GptError`
* 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` or `tracing` feature to use the appropriate logging crate
- 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 functions `remove_partition` and `remove_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 option `readonly_backup`
- remove `GptDisk::update_partitions_embedded` and replace it with the config option `change_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 generic `DiskDevice`
- add ChromeOS RWFW partition type
- improve error reporting, returning `HeaderError` or the new `GptError`
- 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` or `tracing` feature to use the appropriate logging crate
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gpt"
version = "4.0.0-rc.2"
version = "4.0.0-rc.3"
description = "A pure-Rust library to work with GPT partition tables."
documentation = "https://docs.rs/gpt"
authors = [
Expand Down

0 comments on commit bf23b74

Please sign in to comment.