-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: MSRV 1.63 #163
chore: MSRV 1.63 #163
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "pdfium-render" | ||
version = "0.8.25" | ||
edition = "2018" | ||
rust-version = "1.60" | ||
rust-version = "1.63" | ||
publish = true | ||
description = "A high-level idiomatic Rust wrapper around Pdfium, the C++ PDF library used by the Google Chromium project." | ||
readme = "README.md" | ||
|
@@ -23,14 +23,14 @@ doctest = false | |
bitflags = "2" | ||
bytes = "1" | ||
bytemuck = "1" | ||
chrono = "0.4, <= 0.4.31" # To meet crate MSRV target of Rust 1.60. | ||
image = { version = ">= 0.24.0", optional = true } # DynamicImage trait definitions changed between 0.23.14 and 0.24.0; we use trait from version 0.24.0 and later. | ||
chrono = "0.4" | ||
itertools = "0" | ||
log = "0" | ||
maybe-owned = "0" | ||
once_cell = "1" | ||
utf16string = "0" | ||
vecmath = "1" | ||
image = { version = "0.24", default-features = false, optional = true } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
[target.'cfg(target_arch = "wasm32")'.dependencies] | ||
console_log = "1" | ||
|
@@ -39,11 +39,11 @@ js-sys = "0" | |
wasm-bindgen = { version = "0", features = ["enable-interning"] } | ||
wasm-bindgen-futures = { version = "0" } | ||
web-sys = { version = "0", features = [ | ||
"TextDecoder", | ||
"ImageData", | ||
"Window", | ||
"Response", | ||
"Blob", | ||
"TextDecoder", | ||
"ImageData", | ||
"Window", | ||
"Response", | ||
"Blob", | ||
] } | ||
|
||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] | ||
|
@@ -54,14 +54,19 @@ windows = { version = "0", optional = true } | |
|
||
[build-dependencies] | ||
# Bindgen 0.70.0 and later cause build failures when compiling to WASM. For more details, see: | ||
# | ||
# | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think there was meant to be a link to #156 here. I'll add it separately. |
||
bindgen = { version = "<=0.69.4", optional = true } | ||
|
||
[dev-dependencies] | ||
# Dependencies specific to examples. Dependencies for the WASM example in examples/wasm.rs | ||
# are specified separately in examples/Cargo.toml. | ||
rand = "0" # Used by examples/create.rs, examples/matrix.rs | ||
rand = "0" # Used by examples/create.rs, examples/matrix.rs | ||
rayon = "1" # Used by examples/thread_safe.rs | ||
image = { version = "0.24", default-features = false, features = [ | ||
"png", | ||
"jpeg", | ||
"webp", | ||
] } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there an advantage to including the features list here, rather than at line 33? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Several image format features are used in the test case, which can be enabled on demand to keep it simple. |
||
|
||
[features] | ||
default = ["pdfium_latest", "thread_safe", "image"] | ||
|
@@ -85,10 +90,10 @@ flatten = [] | |
|
||
pdfium_latest = ["pdfium_6666"] | ||
pdfium_future = [ | ||
# For testing changes in Pdfium source control that are yet to be released. | ||
"pdfium_use_skia", | ||
"pdfium_enable_xfa", | ||
"pdfium_enable_v8", | ||
# For testing changes in Pdfium source control that are yet to be released. | ||
"pdfium_use_skia", | ||
"pdfium_enable_xfa", | ||
"pdfium_enable_v8", | ||
] | ||
pdfium_6666 = [] | ||
pdfium_6611 = [] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change breaks the published MSRV for this crate. You need to clearly and persuasively explain why you are doing this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just like the problem encountered by the above image.