Skip to content

Commit 50d22ce

Browse files
committed
Make memoffset dependency optional
Only the socket feature depends on memoffset. Allow clients to skip pulling memoffset in as a dependency if they don't need it.
1 parent 8ee9366 commit 50d22ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ bitflags = "1.1"
3232
cfg-if = "1.0"
3333

3434
[target.'cfg(not(target_os = "redox"))'.dependencies]
35-
memoffset = "0.6.3"
35+
memoffset = { version = "0.6.3", optional = true }
3636

3737
[features]
3838
default = [
@@ -68,7 +68,7 @@ reboot = []
6868
resource = []
6969
sched = ["process"]
7070
signal = ["process"]
71-
socket = []
71+
socket = ["memoffset"]
7272
term = []
7373
time = []
7474
ucontext = ["signal"]

0 commit comments

Comments
 (0)