Email me

Crate features / regex

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

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

Short answerregex 1.13.1 has 21 features. By default it turns on std, perf, unicode, regex-syntax/default; add default-features = false to start from nothing. It needs Rust 1.65 or newer.

Pick features

1.13.1latest version
21features
2optional dependencies
1.65MSRV (rust-version)

Every feature

FeatureIn defaultTurns on
loggingaho-corasick?/logging, memchr?/logging, regex-automata/logging
patternnothing else (a switch the code checks)
perfyesperf-cache, perf-dfa, perf-onepass, perf-backtrack, perf-inline, perf-literal
perf-backtrackregex-automata/nfa-backtrack
perf-cachenothing else (a switch the code checks)
perf-dfaregex-automata/hybrid
perf-dfa-fullregex-automata/dfa-build, regex-automata/dfa-search
perf-inlineregex-automata/perf-inline
perf-literaldep:aho-corasick, dep:memchr, regex-automata/perf-literal
perf-onepassregex-automata/dfa-onepass
stdyesaho-corasick?/std, memchr?/std, regex-automata/std, regex-syntax/std
unicodeyesunicode-age, unicode-bool, unicode-case, unicode-gencat, unicode-perl, unicode-script, unicode-segment, regex-automata/unicode, regex-syntax/unicode
unicode-ageregex-automata/unicode-age, regex-syntax/unicode-age
unicode-boolregex-automata/unicode-bool, regex-syntax/unicode-bool
unicode-caseregex-automata/unicode-case, regex-syntax/unicode-case
unicode-gencatregex-automata/unicode-gencat, regex-syntax/unicode-gencat
unicode-perlregex-automata/unicode-perl, regex-automata/unicode-word-boundary, regex-syntax/unicode-perl
unicode-scriptregex-automata/unicode-script, regex-syntax/unicode-script
unicode-segmentregex-automata/unicode-segment, regex-syntax/unicode-segment
unstablepattern
use_stdstd

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 declares (rust-version), and the release that changed it:

  • 1.8.0 (2023-04-20): Rust 1.60.0
  • 1.10.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 --precise <version>, or use resolver 3, which picks compatible versions for you.

More on regex

Real downloads, dependents and alternatives: regex crate data (3.4M real downloads a day, 24,288 dependents).

Security record: regex advisories.

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

Up next

Before you depend on itregex 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