Cargo Features
git-diff has no features set by default.
[dependencies]
git-diff = { version = "0.26.2", features = ["serde1", "wasm"] }
- serde1 = serde
-
Data structures implement
serde::Serialize
andserde::Deserialize
.Enables serde1 of git-hash and git-object
- wasm
-
Make it possible to compile to the
wasm32-unknown-unknown
target.Enables getrandom
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.