Skip to content

Commit 914ae83

Browse files
committed
version 3.3.0
1 parent 1bf2fd4 commit 914ae83

File tree

6 files changed

+10
-14
lines changed

6 files changed

+10
-14
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
<a name="v3.3.0"></a>
2+
### v3.3.0 - 2024-08-23
3+
- revert a change regarding dependencies & features, brought with 3.2.0, which proved to be uncovenient for configuration with no default features - Fix #36
4+
15
<a name="v3.2.0"></a>
26
### v3.2.0 - 2024-07-25
37
- `regex_if!` and `bytes_regex_if!`

Cargo.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lazy-regex"
3-
version = "3.2.0"
3+
version = "3.3.0"
44
authors = ["Canop <[email protected]>"]
55
edition = "2021"
66
description = "lazy static regular expressions checked at compile time"
@@ -12,17 +12,16 @@ readme = "README.md"
1212
rust-version = "1.56"
1313

1414
[dependencies]
15-
once_cell = { version = "1.17", default-features = false }
15+
once_cell = "1.17"
1616
regex = {version = "1.9", default-features = false, optional = true}
1717
regex-lite = {version = "0.1", optional = true}
1818

1919
[dependencies.lazy-regex-proc_macros]
2020
path = "src/proc_macros"
21-
version = "3.2.0"
21+
version = "3.3.0"
2222

2323
[features]
24-
default = ["regex/default", "std", "once_cell/default"]
25-
critical-section = ["once_cell/critical-section"]
24+
default = ["regex/default"]
2625
std = ["regex/std"]
2726
lite = ["regex-lite"]
2827
perf = ["regex/perf"]

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,3 @@ The `lite` flavor comes with slightly lower performances and a reduced Unicode s
215215

216216
If you need to refer to the regex crate in your code, prefer to use the reexport (i.e. `use lazy_regex::regex;`) so that you don't have a version or flavor conflict. When the `lite` feature is enabled, `lazy_regex::regex` refers to `regex_lite` so you don't have to change your code when switching regex engine.
217217

218-
## `#![no_std]` support
219-
220-
If you need to use this crate in a `no_std` environment, you must enable the "critical-section" feature.

examples/regexes/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ license = "MIT"
88
readme = "README.md"
99

1010
[dependencies]
11-
lazy-regex = { path = "../.." }
11+
lazy-regex = { path = "../.."}

src/lib.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,6 @@ doc: [lazy_regex!]
204204
205205
*/
206206

207-
#![cfg_attr(not(feature = "std"), no_std)]
208-
#[cfg(all(feature = "std", feature = "critical-section"))]
209-
compile_error!("The `critical-section` flag should only be used in embedded envrionemnts without a standard library.");
210-
211207
pub use {
212208
lazy_regex_proc_macros::{
213209
lazy_regex,

src/proc_macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lazy-regex-proc_macros"
3-
version = "3.2.0"
3+
version = "3.3.0"
44
authors = ["Canop <[email protected]>"]
55
description = "proc macros for the lazy_regex crate"
66
license = "MIT"

0 commit comments

Comments
 (0)