Cargo Features

[dependencies]
rtnetlink = { version = "0.14.1", default-features = false, features = ["test_as_root", "tokio_socket", "smol_socket"] }
default = tokio_socket

The tokio_socket feature is set by default whenever rtnetlink is added without default-features = false somewhere in the dependency tree.

test_as_root
tokio_socket default = tokio

Enables tokio_socket of netlink-proto

Affects connection::new_connection

smol_socket = async-global-executor

Enables smol_socket of netlink-proto

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.

tokio tokio_socket
async-global-executor smol_socket?