Skip to content

Commit e343529

Browse files
authored
Fix perf issue with regex_automata (#28748)
1 parent 2bc4881 commit e343529

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

patches/third_party-rust-regex_automata-v0_4-BUILD.gn.patch

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ index 1f5143b0afc2f2e480d0c7b7b773d7fc295b338c..82e90a0c2b203d31bf6ccbb4a8b50f19
66
# //third_party/rust/chromium_crates_io/Cargo.toml to use
77
# it from first-party code.
88
visibility = [ "//third_party/rust/*" ]
9-
+ features += [ "alloc", "meta", "nfa-pikevm", "nfa-thompson", "syntax" ]
10-
+ deps = [ "//brave/third_party/rust/regex_syntax/v0_8:lib" ]
9+
+ features += [ "alloc", "dfa-onepass", "dfa-search", "hybrid", "meta", "nfa-backtrack", "nfa-pikevm", "nfa-thompson", "perf-inline", "perf-literal", "perf-literal-multisubstring", "perf-literal-substring", "std", "syntax", "unicode", "unicode-age", "unicode-bool", "unicode-case", "unicode-gencat", "unicode-perl", "unicode-script", "unicode-segment", "unicode-word-boundary" ]
10+
+ deps = [ "//brave/third_party/rust/aho_corasick/v1:lib", "//brave/third_party/rust/regex_syntax/v0_8:lib", "//third_party/rust/memchr/v2:lib" ]
1111
}

0 commit comments

Comments
 (0)