Cargo Features

[dependencies]
gix-diff = { version = "0.50.0", default-features = false, features = ["blob", "index", "serde", "wasm", "document-features"] }
default = blob, index

These default features are set whenever gix-diff is added without default-features = false somewhere in the dependency tree.

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

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::Serialize and serde::Deserialize.

Enables serde, serde of gix-hash, gix-object, and optional gix-index

wasm

Make it possible to compile to the wasm32-unknown-unknown target.

Enables getrandom

Features from optional dependencies

document-features implicit feature

Enables document-features

document-features:

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