Skip to content

Commit 44c4ed9

Browse files
committed
Narrow down regex dependency to more specific targets
1 parent 81fa1bf commit 44c4ed9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ once_cell = "1.18.0"
3535
pnet = "0.34.0"
3636
pnet_macros_support = "0.34.0"
3737
ratatui = "0.23.0"
38-
regex = "1.10.1"
3938
resolv-conf = "0.7.0"
4039
simplelog = "0.12.1"
4140
thiserror = "1.0.49"
@@ -46,6 +45,9 @@ unicode-width = "0.1.11"
4645
[target.'cfg(target_os = "linux")'.dependencies]
4746
procfs = "0.15.1"
4847

48+
[target.'cfg(any(target_os = "macos", target_os = "freebsd"))']
49+
regex = "1.10.1"
50+
4951
[target.'cfg(target_os = "windows")'.dependencies]
5052
netstat2 = "0.9.1"
5153
sysinfo = "0.29.10"
@@ -54,6 +56,7 @@ sysinfo = "0.29.10"
5456
insta = "1.34.0"
5557
packet-builder = { version = "0.7.0", git = "https://github.com/cyqsimon/packet_builder.git", branch = "patch-update" }
5658
pnet_base = "0.34.0"
59+
regex = "1.10.1"
5760
rstest = "0.18.2"
5861

5962
[target.'cfg(target_os = "windows")'.build-dependencies]

0 commit comments

Comments
 (0)