Skip to content

Commit

Permalink
cargo: set 'default-features = false' for memchr and aho-corasick
Browse files Browse the repository at this point in the history
I'm not sure how this one slipped by. Without this, I'd suppose that
no-std support doesn't actually work? Or at least, one would have to
disable the use of both memchr and aho-corasick entirely, since they
depend on std by default. Not quite sure how to test this.

Fixes #1147
  • Loading branch information
BurntSushi committed Jan 10, 2024
1 parent dc0a9d2 commit 027eebd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
1.10.3 (TBD)
============
This is a new patch release that fixes the feature configuration of optional
dependencies.

Bug fixes:

* [BUG #1147](https://github.com/rust-lang/regex/issues/1147):
Set `default-features=false` for the `memchr` and `aho-corasick` dependencies.


1.10.2 (2023-10-16)
===================
This is a new patch release that fixes a search regression where incorrect
Expand Down
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,13 @@ pattern = []
[dependencies.aho-corasick]
version = "1.0.0"
optional = true
default-features = false

# For skipping along search text quickly when a leading byte is known.
[dependencies.memchr]
version = "2.6.0"
optional = true
default-features = false

# For the actual regex engines.
[dependencies.regex-automata]
Expand Down

0 comments on commit 027eebd

Please sign in to comment.