From b0f40b68a5eb8165358f4512fe8168728d0f1de4 Mon Sep 17 00:00:00 2001 From: Markus Wanner Date: Sat, 22 Jun 2024 16:27:53 +0200 Subject: [PATCH] Update dependencies, minor tweak for bitflags to work. --- pdf/Cargo.toml | 8 ++++---- pdf/src/parser/mod.rs | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pdf/Cargo.toml b/pdf/Cargo.toml index c33db92..c4910b1 100644 --- a/pdf/Cargo.toml +++ b/pdf/Cargo.toml @@ -20,11 +20,11 @@ default = ["sync", "cache"] [dependencies] pdf_derive = { version = "0.2.0", path = "../pdf_derive" } -snafu = "0.7.1" +snafu = "0.8.3" libflate = "2.0.0" deflate = "1.0.0" -itertools = "0.10.0" -memmap2 = { version = "0.5.0", optional = true } +itertools = "0.13.0" +memmap2 = { version = "0.9.4", optional = true } weezl = "0.1.4" once_cell = "1.5.2" log = "0.4.14" @@ -37,7 +37,7 @@ stringprep = "0.1.2" sha2 = "0.10.2" fax = "0.2.0" euclid = { version = "0.22.7", optional = true } -bitflags = "1.3" +bitflags = "2.5" istring = { version = "0.3.3", features = ["std", "size"] } datasize = "0.2.13" globalcache = { version = "0.2.2", features = ["sync"], optional = true } diff --git a/pdf/src/parser/mod.rs b/pdf/src/parser/mod.rs index cebf8fd..5d7b502 100644 --- a/pdf/src/parser/mod.rs +++ b/pdf/src/parser/mod.rs @@ -20,6 +20,8 @@ const MAX_DEPTH: usize = 20; bitflags! { + #[repr(transparent)] + #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] pub struct ParseFlags: u16 { const INTEGER = 1 << 0; const STREAM = 1 << 1;