Skip to content

Commit 4c3001b

Browse files
bors[bot]rtzoeller
andauthored
Merge #1644
1644: Make memoffset dependency optional r=asomers a=rtzoeller Only the socket feature depends on memoffset. Allow clients to skip pulling memoffset in as a dependency if they don't need it. Co-authored-by: Ryan Zoeller <[email protected]>
2 parents 8ee9366 + 50d22ce commit 4c3001b

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)