Cargo Features

[dependencies]
cotton-netif = { version = "0.0.5", default-features = false, features = ["std", "async", "sync"] }
default = async, std, sync

These default features are set whenever cotton-netif is added without default-features = false somewhere in the dependency tree.

std default async sync

Enables std of no-std-net

no-std-net:

Makes the library act as a facade to std::net types

async default = std

Enables async-stream, futures-util, neli, nix, tokio, and tokio-test

Affects cotton-netif::linux_netlink

sync default = std

Enables libc and nix

Affects cotton-netif::getifaddrs