rust_regex_dsl/
lib.rs

1//! This crate was build to help using hard coded regular expressions. It provides those macros:
2//! * The [`regex!`] macro - to verify a regular expression on compile time and remove the need to do it in run time and unwrap it.
3//! * The [`regex_dsl!`] macro - to make a regular expression easier to read and maintain.
4//! * The [`create_capture!`] macro  - to create a struct from a regular expression.
5//!
6//! To use, add:
7//! ```toml
8//! rust-regex-dsl = "0.1"
9//! ```
10//! To your `Cargo.toml` manifest.
11//!
12//! To build a DSL from a regular expression, see [rust-regex-dsl-creator](https://crates.io/crates/rust-regex-dsl-creator).
13
14#[doc(hidden)]
15pub use regex::{Captures, Regex};
16pub use rust_regex_dsl_derive::create_capture;
17pub use rust_regex_dsl_derive::regex;
18pub use rust_regex_dsl_derive::regex_dsl;
19
20#[cfg(feature = "creator")]
21pub use rust_regex_dsl_creator::ToDsl;