# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.65"
name = "gix-diff"
version = "0.36.0"
authors = ["Sebastian Thiel <sebastian.thiel@icloud.com>"]
include = [
    "src/**/*",
    "LICENSE-*",
    "CHANGELOG.md",
]
autotests = false
description = "Calculate differences between various git objects"
license = "MIT OR Apache-2.0"
repository = "https://github.com/Byron/gitoxide"

[package.metadata.docs.rs]
all-features = true
features = ["document-features"]
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[lib]
doctest = false

[dependencies.document-features]
version = "0.2.0"
optional = true

[dependencies.getrandom]
version = "0.2.8"
features = ["js"]
optional = true
default-features = false

[dependencies.gix-hash]
version = "^0.13.0"

[dependencies.gix-object]
version = "^0.37.0"

[dependencies.imara-diff]
version = "0.1.3"
optional = true

[dependencies.serde]
version = "1.0.114"
features = ["derive"]
optional = true
default-features = false

[dependencies.thiserror]
version = "1.0.32"

[features]
blob = ["dep:imara-diff"]
default = ["blob"]
serde = [
    "dep:serde",
    "gix-hash/serde",
    "gix-object/serde",
]
wasm = ["dep:getrandom"]