Cargo Features

CompactMap has no features set by default.

[dependencies]
compactmap = { version = "0.3.7", features = ["serde_ser_len", "serde"] }
serde_ser_len

Calculate length for serializing (for bincode, for example)

Features from optional dependencies

serde implicit feature

Enables serde

serde:

A generic serialization/deserialization framework