Cargo Features

[dependencies]
pagination = { version = "0.3.0", default-features = false, features = ["with-serde", "page-size-15", "page-size-20", "page-size-50"] }
default = page-size-20

The page-size-20 feature is set by default whenever pagination is added without default-features = false somewhere in the dependency tree.

with-serde = serde, serde_derive
page-size-5 page-size-10 page-size-15
page-size-20 default
page-size-30 page-size-40 page-size-50

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.

serde with-serde?
serde_derive with-serde?