# 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"
name = "collect_failable"
version = "0.16.0"
authors = ["Austin Stanley <maxtmahem@gmail>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A trait for collecting values into a container which has an invariant to uphold and whose construction may fail"
homepage = "https://github.com/MaxMahem/collect_failable"
documentation = "https://docs.rs/collect_failable/"
readme = "README.md"
keywords = [
    "iterator",
    "collect",
    "container",
]
categories = [
    "data-structures",
    "rust-patterns",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/MaxMahem/collect_failable"

[package.metadata.docs.rs]
all-features = true

[features]
alloc = []
arrayvec = ["dep:arrayvec"]
default = [
    "alloc",
    "std",
    "unsafe",
    "tuple",
]
hashbrown = ["dep:hashbrown"]
indexmap = ["dep:indexmap"]
std = ["alloc"]
tuple = []
unsafe = []

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

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

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

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

[[bench]]
name = "array_monomorphization"
path = "benches/array_monomorphization.rs"
harness = false

[[bench]]
name = "try_extend_comparison"
path = "benches/try_extend_comparison.rs"
harness = false

[dependencies.arrayvec]
version = "0.7.6"
optional = true

[dependencies.derive_more]
version = "2.1.1"
features = [
    "constructor",
    "deref",
    "display",
]

[dependencies.display_as_debug]
version = "0.5.1"

[dependencies.either]
version = "1.15.0"

[dependencies.fluent_result]
version = "0.10.1"

[dependencies.hashbrown]
version = "0.16.1"
optional = true

[dependencies.indexmap]
version = "2.13.0"
optional = true

[dependencies.no_drop]
version = "0.3.0"

[dependencies.sealed]
version = "0.6.0"

[dependencies.size_hinter]
version = "0.4.0"

[dependencies.subdef]
version = "0.1.2"

[dependencies.tap]
version = "1.0.1"

[dependencies.thiserror]
version = "2.0.18"
default-features = false

[dev-dependencies.assert_unordered]
version = "0.3.5"
default-features = false

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[dev-dependencies.dropcount]
version = "0.1.2"
