Cargo Features

git-hash has no features set by default.

git-hash = { version = "0.10.3", features = ["serde1", "document-features"] }
serde1 = serde

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

Features from optional dependencies

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

serde serde1?
document-features implicit feature

Enables document-features


Extract documentation for the feature flags from comments in Cargo.toml