Cargo Features

libp2p-core has no features set by default.

[dependencies]
libp2p-core = { version = "0.42.0", features = ["serde"] }
serde

Enables serde, serde of libp2p-identity and serde-codec of multihash

multihash:

Deprecated, don't use.

libp2p-core has 1 feature without comment.