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 default-features = false somewhere in the dependency tree.

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.

clap utils?
anyhow utils?
neli netlink
mio tokio?

Enables mio ^0.8

futures tokio?
smol implicit feature

Enables smol ^1.3

smol:

A small and fast async runtime

Affects socketcan::smol, socketcan::async_io