Registry / utility / regex-macros

regex-macros

JSON →
library0.2.0rscratesunverified

An implementation of statically compiled regular expressions for Rust.

# Cargo.toml [dependencies] regex_macros = "0.2.0"
INSTALL
IMPORT
SIG · REGEX-MACROS
R
regex-macros
utilityrustv0.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

regex
use regex_macros::regex;

Compile a regex at compile time.

use regex_macros::regex; fn main() { let re = regex!("^hello"); println!("{}", re.is_match("hello world")); }
Debug
Known issues
breakingThis crate is deprecated; prefer the `regex` crate for runtime performance.
fix
Replace `regex-macros` with `regex` and use `Regex::new()`.
affects: *
Upgrade
Version history
0.2.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
regex-macros — cargo add regex-macros · libregistry