Skip to content

Commit 7492d24

Browse files
authored
Make regex an optional dependency (#659)
Co-authored-by: Dylan Anthony <[email protected]>
1 parent c44944d commit 7492d24

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

Cargo.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sentry-core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ client = ["rand"]
2626
# and macros actually expand features (and extern crate) where they are used!
2727
debug-logs = ["dep:log"]
2828
test = ["client"]
29-
UNSTABLE_metrics = ["sentry-types/UNSTABLE_metrics"]
29+
UNSTABLE_metrics = ["sentry-types/UNSTABLE_metrics", "regex"]
3030
UNSTABLE_cadence = ["dep:cadence", "UNSTABLE_metrics"]
3131

3232
[dependencies]
@@ -36,7 +36,7 @@ itertools = "0.13.0"
3636
log = { version = "0.4.8", optional = true, features = ["std"] }
3737
once_cell = "1"
3838
rand = { version = "0.8.1", optional = true }
39-
regex = "1.7.3"
39+
regex = { version = "1.7.3" , optional = true}
4040
sentry-types = { version = "0.33.0", path = "../sentry-types" }
4141
serde = { version = "1.0.104", features = ["derive"] }
4242
serde_json = { version = "1.0.46" }

0 commit comments

Comments
 (0)