Skip to content

Commit 027eebd

Browse files
committed
cargo: set 'default-features = false' for memchr and aho-corasick
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
1 parent dc0a9d2 commit 027eebd

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
1.10.3 (TBD)
2+
============
3+
This is a new patch release that fixes the feature configuration of optional
4+
dependencies.
5+
6+
Bug fixes:
7+
8+
* [BUG #1147](https://github.com/rust-lang/regex/issues/1147):
9+
Set `default-features=false` for the `memchr` and `aho-corasick` dependencies.
10+
11+
112
1.10.2 (2023-10-16)
213
===================
314
This is a new patch release that fixes a search regression where incorrect

Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,13 @@ pattern = []
165165
[dependencies.aho-corasick]
166166
version = "1.0.0"
167167
optional = true
168+
default-features = false
168169

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

174176
# For the actual regex engines.
175177
[dependencies.regex-automata]

0 commit comments

Comments
 (0)