Skip to content
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

Update minimum regex version to fix compile error #2717

Closed
wants to merge 1 commit into from

Conversation

kawasin73
Copy link
Contributor

regex 1.5.3 solves the compile error with unicode-perl feature. https://github.com/rust-lang/regex/blob/master/CHANGELOG.md#153-2021-05-01

Specifing wrong version as the minimum version can cause compile errors on products which depend on bindgen. Minimum versions can be checked with this cargo command.

cargo +nightly update -Z minimal-versions

regex 1.5.3 solves the compile error with unicode-perl feature.
https://github.com/rust-lang/regex/blob/master/CHANGELOG.md#153-2021-05-01

Specifing wrong version as the minimum version can cause compile errors
on products which depend on bindgen. Minimum versions can be checked
with this cargo command.

```
cargo +nightly update -Z minimal-versions
```
@kawasin73
Copy link
Contributor Author

r? @emilio

@tgross35
Copy link
Contributor

tgross35 commented Jan 12, 2024

I think you may as well go all the way up to version 1.9.6, which has a lot more bugfixes and is the last version to support bindgen's MSRV of 1.60. 1.7.1 is what is in Cargo.lock anyway.

@@ -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.3", 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.3", default-features = false, features = ["std", "unicode-perl"] }
regex = { version = "1.9.6", default-features = false, features = ["std", "unicode-perl"] }

@tgross35
Copy link
Contributor

Ah, this is actually a duplicate of #2714

@emilio
Copy link
Contributor

emilio commented Jan 12, 2024

Let's close as a dup. Happy to take a patch updating to a newer regex version, though given users can use the very latest it's not a big deal.

@emilio emilio closed this Jan 12, 2024
@bors-servo
Copy link

☔ The latest upstream changes (presumably 11aeae4) made this pull request unmergeable. Please resolve the merge conflicts.

@kawasin73
Copy link
Contributor Author

Even with regex 1.5.1, bindgen still fails to build with minimum versions. Re-create the PR at #2721.

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.

4 participants