Skip to content

Commit

Permalink
Publish v4.0.0-rc.2
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenmeier committed Apr 3, 2024
1 parent ffaefd8 commit 0aed703
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### 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
Expand Down Expand Up @@ -27,4 +35,5 @@
* 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
* 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.1"
version = "4.0.0-rc.2"
description = "A pure-Rust library to work with GPT partition tables."
documentation = "https://docs.rs/gpt"
authors = [
Expand Down
4 changes: 1 addition & 3 deletions src/logging.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// creates a log on the trace level
#[macro_export]
macro_rules! trace {
($($expr:expr),*) => (
#[cfg(feature = "tracing")]
Expand All @@ -20,7 +19,6 @@ macro_rules! trace {
}

/// creates a log on the debug level
#[macro_export]
macro_rules! debug {
($($expr:expr),*) => (
#[cfg(feature = "tracing")]
Expand All @@ -41,7 +39,7 @@ macro_rules! debug {
}

/// allow expressions to be unused
#[macro_export]
#[allow(unused)]
macro_rules! log_allow_unused {
($($expr:expr),*) => (
$(
Expand Down

0 comments on commit 0aed703

Please sign in to comment.