Cargo Features

git-credentials has no features set by default.

git-credentials = { version = "0.9.2", features = ["serde1", "document-features"] }
serde1 = serde

Data structures implement serde::Serialize and serde::Deserialize.

Enables serde of bstr, serde1 of git-sec

Features from optional dependencies

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

serde serde1?

With derive

document-features implicit feature