Skip to content

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.

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