Skip to content

Use at least regex 1.5.1 to avoid build build failures without perf-literal feature #2714

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

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

MarijnS95
Copy link
Contributor

When building a crate that depends on bindgen with -Zminimal-features, cargo ends up selecting regex 1.5.0 which fails to compile when its perf-literal feature isn't enabled. This was aptly fixed in 1.5.1, albeit without yanking the 1.5.0 release.

rust-lang/regex#931

…f-literal` feature

When building a crate that depends on `bindgen` with `-Zminimal-features`, `cargo` ends up selecting `regex 1.5.0` which fails to compile when its `perf-literal` feature wasn't enabled. This was aptly fixed in `1.5.1`, albeit without yanking the `1.5.0` release.

rust-lang/regex#931
@@ -36,7 +36,7 @@ peeking_take_while = "0.1.2"
prettyplease = { version = "0.2.7", optional = true, features = ["verbatim"] }
proc-macro2 = { version = "1", default-features = false }
quote = { version = "1", default-features = false }
regex = { version = "1.5", default-features = false, features = ["std", "unicode-perl"] }
regex = { version = "1.5.1", default-features = false, features = ["std", "unicode-perl"] }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
regex = { version = "1.5.1", default-features = false, features = ["std", "unicode-perl"] }
regex = { version = "1.9.6", default-features = false, features = ["std", "unicode-perl"] }

I think it is OK to bump to the latest version supported by bindgen's MSRV (1.60, regex 1.10 is the first to jump to 1.65)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants