From 48bec03dfe6db4db065f8220e743b06948888dbe Mon Sep 17 00:00:00 2001 From: semiviral Date: Sun, 2 Apr 2023 06:06:21 -0500 Subject: [PATCH] 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;