Cargo Features
[dependencies]
ethox = { version = "0.0.2", default-features = false, features = ["alloc", "std", "sys"] }
- default = alloc
-
The
alloc
feature is set by default wheneverethox
is added without
somewhere in the dependency tree.default-features = false - alloc default std?
-
Interact with the
alloc
crate from std - std = alloc
-
Interact with all of
std
Affects
sys::wait
,ipv4::ParseCidrError
… - sys = libc
-
Have libc-based platform dependent sockets
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.