Skip to content

Commit 87b535c

Browse files
authored
Extend documentation about deprecation of wildcard patterns (#2374)
1 parent c17c292 commit 87b535c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,8 @@
201201
## Changed
202202

203203
* Regex inputs are sanitized so alternation (`a|b`) is handled correctly but
204-
wildcard patterns (`*`) are now considered invalid.
204+
wildcard patterns (`*`) are now considered invalid. The `.*` pattern can be
205+
used as a replacement.
205206
* the `ParseCallbacks`trait does not require to implement `UnwindSafe`.
206207
* the `Builder::parse_callbacks` method no longer overwrites previously added
207208
callbacks and composes them in a last-to-first manner.

bindgen/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ impl Default for CodegenConfig {
244244
/// regular expressions as arguments. These regular expressions will be parenthesized and wrapped
245245
/// in `^` and `$`. So if `<regex>` is passed as argument, the regular expression to be stored will
246246
/// be `^(<regex>)$`.
247+
///
248+
/// Releases of `bindgen` with a version lesser or equal to `0.62.0` used to accept the wildcard
249+
/// pattern `*` as a valid regular expression. This behavior has been deprecated and the `.*`
250+
/// pattern must be used instead.
247251
#[derive(Debug, Default, Clone)]
248252
pub struct Builder {
249253
options: BindgenOptions,

0 commit comments

Comments
 (0)