Cargo Features
git-object has no features set by default.
[dependencies]
git-object = { version = "0.26.2", features = ["serde1", "verbose-object-parsing-errors", "document-features"] }
- serde1 = serde
-
Data structures implement
serde::Serialize
andserde::Deserialize
.Enables serde of bstr, serde of smallvec, serde1 of git-actor and git-hash
- verbose-object-parsing-errors
-
When parsing objects by default errors will only be available on the granularity of success or failure, and with the above flag enabled details information about the error location will be collected.
Use it in applications which expect broken or invalid objects or for debugging purposes. Incorrectly formatted objects aren't at all common otherwise.Enables nom
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 serde1?
- document-features implicit feature
-
Enables document-features
document-features:
Extract documentation for the feature flags from comments in Cargo.toml