Cargo Features

[dependencies]
can = { version = "0.2.1-alpha.4", default-features = false, features = ["embedded-can-compat", "socketcan-compat"] }
default = embedded-can-compat, socketcan-compat

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

embedded-can-compat default = embedded-can
socketcan-compat default = socketcan

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.

embedded-can embedded-can-compat

Enables embedded-can ^0.3.0

socketcan socketcan-compat

Enables socketcan ^1.7.0