From 48bec03dfe6db4db065f8220e743b06948888dbe Mon Sep 17 00:00:00 2001 From: semiviral Date: Sun, 2 Apr 2023 06:06:21 -0500 Subject: [PATCH 1/3] update bitflags `1.3` -> `2.0` --- Cargo.toml | 6 +++--- src/header.rs | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 35c86a5..6bbbae4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ as GNU Longname. The maximum supported file name length is 100 characters includ The maximum supported file size is 8GiB. Also, directories are not supported yet but only flat collections of files. """ -version = "0.1.8" +version = "0.1.9" edition = "2018" keywords = ["tar", "tarball", "archive"] categories = ["data-structures", "no-std", "parser-implementations"] @@ -26,9 +26,9 @@ alloc = [] all = ["alloc"] [dependencies] -bitflags = "1.3" arrayvec = { version = "0.7", default-features = false } log = { version = "0.4", default-features = false } +bitflags = "2.0" [dev-dependencies] -env_logger = "0.9" +env_logger = "0.10" diff --git a/src/header.rs b/src/header.rs index 0c92d15..0eb4e8c 100644 --- a/src/header.rs +++ b/src/header.rs @@ -253,6 +253,7 @@ pub enum TypeFlag { bitflags::bitflags! { /// UNIX file permissions on octal format. + #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct ModeFlags: u64 { /// Set UID on execution. const SetUID = 0o4000; From c8c12e7c0b610da5415f1ba038787434c769b47f Mon Sep 17 00:00:00 2001 From: semiviral Date: Sun, 2 Apr 2023 06:15:42 -0500 Subject: [PATCH 2/3] `#[repr(transparent)]` for `ModeFlags` --- src/header.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/header.rs b/src/header.rs index 0eb4e8c..975428d 100644 --- a/src/header.rs +++ b/src/header.rs @@ -253,6 +253,7 @@ pub enum TypeFlag { bitflags::bitflags! { /// UNIX file permissions on octal format. + #[repr(transparent)] #[derive(Debug, Clone, Copy, PartialEq, Eq)] pub struct ModeFlags: u64 { /// Set UID on execution. From e417692b46d973c3d87a105411795cbc65441f2c Mon Sep 17 00:00:00 2001 From: semiviral Date: Sun, 2 Apr 2023 08:27:47 -0500 Subject: [PATCH 3/3] undo version bump --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 6bbbae4..bf91c2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ as GNU Longname. The maximum supported file name length is 100 characters includ The maximum supported file size is 8GiB. Also, directories are not supported yet but only flat collections of files. """ -version = "0.1.9" +version = "0.1.8" edition = "2018" keywords = ["tar", "tarball", "archive"] categories = ["data-structures", "no-std", "parser-implementations"]