# 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.85"
name = "iddqd"
version = "0.4.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Maps where keys borrow from values, including bijective and trijective maps."
documentation = "https://docs.rs/iddqd"
readme = "README.md"
keywords = [
    "iddqd",
    "id_map",
    "bijective",
    "hashmap",
    "btreemap",
]
categories = [
    "data-structures",
    "no-std",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/oxidecomputer/iddqd"
resolver = "2"

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

[package.metadata.cargo-sync-rdme.badge.badges]
license = true
crates-io = true
docs-rs = true
rust-version = true

[[package.metadata.release.pre-release-replacements]]
file = "../iddqd-extended-examples/examples/typify-types.rs"
search = 'iddqd" = ".*"'
replace = 'iddqd" = "{{version}}"'
exactly = 1

[[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/oxidecomputer/iddqd/releases/tag/iddqd-{{version}}"""
exactly = 1

[features]
allocator-api2 = []
daft = [
    "dep:daft",
    "dep:ref-cast",
]
default = [
    "allocator-api2",
    "std",
    "default-hasher",
]
default-hasher = ["dep:foldhash"]
internal-schemars08-preserve-order = [
    "schemars08",
    "schemars/preserve_order",
]
proptest = ["dep:proptest"]
schemars08 = [
    "dep:schemars",
    "dep:serde_json",
    "serde",
]
serde = ["dep:serde_core"]
std = ["dep:foldhash"]

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

[[example]]
name = "bi-complex"
path = "examples/bi-complex.rs"
required-features = ["default-hasher"]

[[example]]
name = "id-complex"
path = "examples/id-complex.rs"
required-features = [
    "default-hasher",
    "std",
]

[[example]]
name = "schemars-examples"
path = "examples/schemars-examples.rs"
required-features = [
    "default-hasher",
    "schemars08",
]

[[example]]
name = "tri-complex"
path = "examples/tri-complex.rs"
required-features = ["default-hasher"]

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

[[test]]
name = "ui"
path = "tests/ui.rs"

[dependencies.allocator-api2]
version = "0.2.21"
features = ["alloc"]
default-features = false

[dependencies.daft]
version = "0.1.5"
optional = true
default-features = false

[dependencies.equivalent]
version = "1.0.2"

[dependencies.foldhash]
version = "0.2.0"
optional = true

[dependencies.hashbrown]
version = "0.16.0"
features = [
    "allocator-api2",
    "inline-more",
]
default-features = false

[dependencies.proptest]
version = "1.7.0"
features = ["std"]
optional = true
default-features = false

[dependencies.ref-cast]
version = "1.0.24"
optional = true

[dependencies.schemars]
version = "0.8.22"
optional = true

[dependencies.serde_core]
version = "1.0.223"
optional = true

[dependencies.serde_json]
version = "1.0.145"
optional = true

[dev-dependencies.expectorate]
version = "1.2.0"

[dev-dependencies.foldhash]
version = "0.2.0"

[dev-dependencies.proptest]
version = "1.7.0"
features = ["std"]
default-features = false

[dev-dependencies.serde]
version = "1.0.223"

[dev-dependencies.test-strategy]
version = "0.4.3"

[dev-dependencies.trybuild]
version = "1.0.116"

[lints.clippy.undocumented_unsafe_blocks]
level = "warn"
priority = 0

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