[package] name = "gix-diff" version = "0.44.1" repository = "https://github.com/Byron/gitoxide" license = "MIT OR Apache-2.0" description = "Calculate differences between various git objects" authors = ["Sebastian Thiel "] edition = "2021" include = ["src/**/*", "LICENSE-*"] rust-version = "1.65" autotests = false [features] default = ["blob"] ## Enable diffing of blobs using imara-diff, which also allows for a generic rewrite tracking implementation. blob = ["dep:imara-diff", "dep:gix-filter", "dep:gix-worktree", "dep:gix-path", "dep:gix-fs", "dep:gix-command", "dep:gix-tempfile", "dep:gix-trace"] ## Data structures implement `serde::Serialize` and `serde::Deserialize`. serde = ["dep:serde", "gix-hash/serde", "gix-object/serde"] ## Make it possible to compile to the `wasm32-unknown-unknown` target. wasm = ["dep:getrandom"] [lib] doctest = false [dependencies] gix-hash = { version = "^0.14.2", path = "../gix-hash" } gix-object = { version = "^0.42.3", path = "../gix-object" } gix-filter = { version = "^0.11.3", path = "../gix-filter", optional = true } gix-worktree = { version = "^0.34.1", path = "../gix-worktree", default-features = false, features = ["attributes"], optional = true } gix-command = { version = "^0.3.8", path = "../gix-command", optional = true } gix-path = { version = "^0.10.9", path = "../gix-path", optional = true } gix-fs = { version = "^0.11.2", path = "../gix-fs", optional = true } gix-tempfile = { version = "^14.0.0", path = "../gix-tempfile", optional = true } gix-trace = { version = "^0.1.9", path = "../gix-trace", optional = true } thiserror = "1.0.32" imara-diff = { version = "0.1.3", optional = true } serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"]} getrandom = { version = "0.2.8", optional = true, default-features = false, features = ["js"] } bstr = { version = "1.5.0", default-features = false } document-features = { version = "0.2.0", optional = true } [package.metadata.docs.rs] all-features = true features = ["document-features"]