Cargo Features
[dependencies]
gix-diff = { version = "0.54.1", default-features = false, features = ["blob", "index", "serde", "wasm", "document-features"] }
- default = blob, index
-
These default features are set whenever
gix-diffis added withoutsomewhere in the dependency tree.default-features = false - blob default
-
Enable diffing of blobs using imara-diff.
Enables gix-command, gix-filter, gix-fs, gix-path, gix-tempfile, gix-trace, gix-traverse, gix-worktree, and imara-diff ^0.1.8
Affects
gix-diff::Rewrites,gix-diff::rewrites,gix-diff::tree_with_rewrites,gix-diff::blob… - index default
-
Enable diffing of two indices, which also allows for a generic rewrite tracking implementation.
Enables gix-attributes, gix-index, and gix-pathspec
Affects
gix-diff::index… - serde
-
Data structures implement
serde::Serializeandserde::Deserialize.Enables serde, serde of gix-hash, gix-object, and optional gix-index
- wasm
-
Make it possible to compile to the
wasm32-unknown-unknowntarget.Enables getrandom ^0.2.8
Features from optional dependencies
- document-features implicit feature
-
Enables document-features
document-features:
Extract documentation for the feature flags from comments in Cargo.toml