Skip to content

Commit b0f40b6

Browse files
mwanners3bk
authored andcommitted
Update dependencies, minor tweak for bitflags to work.
1 parent a9087fa commit b0f40b6

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

pdf/Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ default = ["sync", "cache"]
2020

2121
[dependencies]
2222
pdf_derive = { version = "0.2.0", path = "../pdf_derive" }
23-
snafu = "0.7.1"
23+
snafu = "0.8.3"
2424
libflate = "2.0.0"
2525
deflate = "1.0.0"
26-
itertools = "0.10.0"
27-
memmap2 = { version = "0.5.0", optional = true }
26+
itertools = "0.13.0"
27+
memmap2 = { version = "0.9.4", optional = true }
2828
weezl = "0.1.4"
2929
once_cell = "1.5.2"
3030
log = "0.4.14"
@@ -37,7 +37,7 @@ stringprep = "0.1.2"
3737
sha2 = "0.10.2"
3838
fax = "0.2.0"
3939
euclid = { version = "0.22.7", optional = true }
40-
bitflags = "1.3"
40+
bitflags = "2.5"
4141
istring = { version = "0.3.3", features = ["std", "size"] }
4242
datasize = "0.2.13"
4343
globalcache = { version = "0.2.2", features = ["sync"], optional = true }

pdf/src/parser/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ const MAX_DEPTH: usize = 20;
2020

2121

2222
bitflags! {
23+
#[repr(transparent)]
24+
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
2325
pub struct ParseFlags: u16 {
2426
const INTEGER = 1 << 0;
2527
const STREAM = 1 << 1;

0 commit comments

Comments
 (0)