lints.workspace = true [package] name = "gix-commitgraph" version = "0.37.1" repository = "https://github.com/GitoxideLabs/gitoxide" documentation = "https://git-scm.com/docs/commit-graph" license = "MIT OR Apache-2.0" description = "Read-only access to the git commitgraph file format" authors = ["Conor Davis ", "Sebastian Thiel "] edition = "2024" include = ["/src/**/*", "/LICENSE-*"] rust-version = "1.85" [lib] doctest = false [features] ## Enable support for the SHA-1 hash by enabling the respective feature in the `gix-hash` crate. sha1 = ["gix-hash/sha1"] ## Enable support for the SHA-256 hash by enabling the respective feature in the `gix-hash` crate. sha256 = ["gix-hash/sha256"] ## Data structures implement `serde::Serialize` and `serde::Deserialize` serde = ["dep:serde", "gix-hash/serde", "bstr/serde"] [dependencies] gix-hash = { version = "^0.25.1", path = "../gix-hash" } gix-chunk = { version = "^0.7.2", path = "../gix-chunk" } gix-error = { version = "^0.2.5", path = "../gix-error" } bstr = { version = "1.12.0", default-features = false, features = ["std"] } memmap2 = "0.9.11" nonempty = "0.12.0" serde = { version = "1.0.114", optional = true, default-features = false, features = ["derive"] } document-features = { version = "0.2.0", optional = true } [dev-dependencies] gix-testtools = { path = "../tests/tools" } gix-date = { path = "../gix-date" } gix-hash = { path = "../gix-hash", features = ["sha1", "sha256"] } [package.metadata.docs.rs] all-features = true features = ["sha1", "document-features"] [package.metadata.cargo-machete] ignored = [ # Needed for `bstr/serde` feature forwarding, even though no direct `bstr` paths are referenced. "bstr", ]