Skip to content

Commit

Permalink
Fix example feature dependencies
Browse files Browse the repository at this point in the history
Turns out that all features rely on std, not only sys, in some capacity.
Most of the failures are from parsing of address which is implemented in
terms of std (see #26).
  • Loading branch information
HeroicKatora committed Oct 26, 2019
1 parent 8221460 commit 382f516
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions ethox/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,23 @@ sys = ["libc"]
[dev-dependencies]
structopt = { version = "0.2", default-features = false }

# All examples rely on sys and std for some reason.
#
# sys: Required to open the underlying sockets.
# std: Most due to argument parsing (which is done in std) but also to use
# stderr and other io portions
[[example]]
name = "debug_tap"
required-features = ["alloc", "sys"]
required-features = ["alloc", "sys", "std"]

[[example]]
name = "ping_tap"
required-features = ["alloc", "sys"]
required-features = ["alloc", "sys", "std"]

[[example]]
name = "arp_tap"
required-features = ["alloc", "sys"]
required-features = ["alloc", "sys", "std"]

[[example]]
name = "curl"
required-features = ["alloc", "sys"]
required-features = ["alloc", "sys", "std"]

0 comments on commit 382f516

Please sign in to comment.