# 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 = "2024"
rust-version = "1.86"
name = "guppy"
version = "0.17.26"
authors = [
    "Rain <rain1@fb.com>",
    "Brandon Williams <bmwill@fb.com>",
]
build = false
exclude = ["README.tpl"]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Track and query Cargo dependency graphs."
documentation = "https://docs.rs/guppy"
readme = "README.md"
keywords = [
    "cargo",
    "dependencies",
    "graph",
    "guppy",
]
categories = [
    "config",
    "data-structures",
    "development-tools",
    "parser-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/guppy-rs/guppy"
resolver = "2"

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

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "Unreleased"
replace = "[{{version}}]"
min = 1

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "ReleaseDate"
replace = "{{date}}"
min = 1

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "<!-- next-header -->"
replace = """
<!-- next-header -->
## Unreleased - ReleaseDate
"""
exactly = 1

[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = "<!-- next-url -->"
replace = """
<!-- next-url -->
[{{version}}]: https://github.com/guppy-rs/guppy/releases/tag/{{crate_name}}-{{version}}"""
exactly = 1

[badges.maintenance]
status = "actively-developed"

[features]
proptest1 = [
    "proptest",
    "proptest-derive",
    "target-spec/proptest1",
]
rayon1 = ["rayon"]
summaries = [
    "guppy-summaries",
    "target-spec/summaries",
    "toml",
]

[lib]
name = "guppy"
path = "src/lib.rs"

[[example]]
name = "cargo_set_link_filter"
path = "examples/cargo_set_link_filter.rs"

[[example]]
name = "deps"
path = "examples/deps.rs"

[[example]]
name = "print_by_level"
path = "examples/print_by_level.rs"

[[example]]
name = "print_dot"
path = "examples/print_dot.rs"

[[example]]
name = "remove_dev_only"
path = "examples/remove_dev_only.rs"

[[example]]
name = "topo_sort"
path = "examples/topo_sort.rs"

[[test]]
name = "graph-tests"
path = "tests/graph-tests/main.rs"

[dependencies.ahash]
version = "0.8.12"

[dependencies.camino]
version = "1.2.1"

[dependencies.cargo_metadata]
version = "0.23.1"

[dependencies.cfg-if]
version = "1.0.3"

[dependencies.debug-ignore]
version = "1.0.5"

[dependencies.fixedbitset]
version = "0.5.7"
default-features = false

[dependencies.guppy-summaries]
version = "0.7.1"
optional = true

[dependencies.guppy-workspace-hack]
version = "0.1.0"

[dependencies.indexmap]
version = "2.11.4"

[dependencies.itertools]
version = "0.14.0"

[dependencies.nested]
version = "0.1.1"

[dependencies.once_cell]
version = "1.21.3"

[dependencies.pathdiff]
version = "0.2.3"
features = ["camino"]

[dependencies.petgraph]
version = "0.8.3"
default-features = false

[dependencies.proptest]
version = "1.7.0"
optional = true

[dependencies.proptest-derive]
version = "0.6.0"
optional = true

[dependencies.rayon]
version = "1.10.0"
optional = true

[dependencies.semver]
version = "1.0.27"

[dependencies.serde]
version = "1.0.228"
features = ["derive"]

[dependencies.serde_json]
version = "1.0.145"

[dependencies.smallvec]
version = "1.15.1"

[dependencies.static_assertions]
version = "1.1.0"

[dependencies.target-spec]
version = "3.6.0"

[dependencies.toml]
version = "0.5.11"
features = ["preserve_order"]
optional = true

[dev-dependencies.pretty_assertions]
version = "1.4.1"

[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
    "cfg(doc_cfg)",
    "cfg(guppy_nightly)",
]
