Cargo Features

Comparable has no features set by default.

[dependencies]
comparable = { version = "0.5.4", features = ["derive", "serde"] }
derive = comparable_derive

Provide derive(Comparable) macro.

serde

Enables serde of optional comparable_derive

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

comparable_derive derive?