Email me

Crate features / regex-automata

Feature flags · regex-automata 0.4.18 · from crates.io 2026-10-24

regex-automata features: what each one does, and the line to copy

Short answerregex-automata 0.4.18 has 30 features. By default it turns on std, syntax, perf, unicode, meta, nfa, dfa, hybrid; add default-features = false to start from nothing. It needs Rust 1.65 or newer.

Pick features

0.4.18latest version
30features
4optional dependencies
1.65MSRV (rust-version)

Every feature

FeatureIn defaultTurns on
allocnothing else (a switch the code checks)
dfayesdfa-build, dfa-search, dfa-onepass
dfa-buildnfa-thompson, dfa-search
dfa-onepassnfa-thompson
dfa-searchnothing else (a switch the code checks)
hybridyesalloc, nfa-thompson
internal-instrumentinternal-instrument-pikevm
internal-instrument-pikevmlogging, std
loggingdep:log, aho-corasick?/logging, memchr?/logging
metayessyntax, nfa-pikevm
nfayesnfa-thompson, nfa-pikevm, nfa-backtrack
nfa-backtracknfa-thompson
nfa-pikevmnfa-thompson
nfa-thompsonalloc
perfyesperf-inline, perf-literal
perf-inlinenothing else (a switch the code checks)
perf-literalperf-literal-substring, perf-literal-multisubstring
perf-literal-multisubstringdep:aho-corasick
perf-literal-substringaho-corasick?/perf-literal, dep:memchr
stdyesregex-syntax?/std, memchr?/std, aho-corasick?/std, alloc
syntaxyesdep:regex-syntax, alloc
unicodeyesunicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-perl, unicode-script, unicode-segment, unicode-word-boundary, regex-syntax?/unicode
unicode-ageregex-syntax?/unicode-age
unicode-boolregex-syntax?/unicode-bool
unicode-caseregex-syntax?/unicode-case
unicode-gencatregex-syntax?/unicode-gencat
unicode-perlregex-syntax?/unicode-perl
unicode-scriptregex-syntax?/unicode-script
unicode-segmentregex-syntax?/unicode-segment
unicode-word-boundarynothing else (a switch the code checks)

dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).

MSRV history

The minimum Rust version regex-automata declares (rust-version), and the release that changed it:

  • 0.4.0 (2023-10-09): Rust 1.65

Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p regex-automata --precise <version>, or use resolver 3, which picks compatible versions for you.

More on regex-automata

Real downloads, dependents and alternatives: regex-automata crate data (3.6M real downloads a day, 210 dependents).

docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021

Up next

Before you depend on itregex-automata crate dataReal downloads, dependents, alternatives.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ