Cargo Features
[dependencies]
socketcan = { version = "3.3.1", default-features = false, features = ["netlink", "dump", "vcan_tests", "utils", "tokio", "async-std", "smol"] }
Features:
"netlink" (default) - Whether to include CAN interface configuration
capabilities based on netlink kernel communications "dump" (default) - Whether to include 'candump' output parsing
capabilities.
"utils" - Build the command-line utilities
- default = dump, netlink
-
These default features are set whenever
socketcan
is added without
somewhere in the dependency tree.default-features = false - netlink default netlink_tests? vcan_tests? = neli
-
Affects
socketcan::nl
… - dump default
-
Affects
socketcan::dump
… - netlink_tests vcan_tests = netlink
- utils = anyhow, clap
-
Required by the rcan binary
- tokio = futures, mio
-
Enables tokio
Affects
socketcan::tokio
… - async-std
-
Enables async-io ^1.13 and async-std
Affects
socketcan::async_std
,socketcan::async_io
…
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.