# 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.90.0"
name = "frozen-collections"
version = "0.9.1"
authors = ["Martin Taillefer <martin@taillefer.org>"]
build = "build.rs"
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Fast partially-immutable collections."
readme = "README.md"
keywords = [
    "map",
    "set",
    "collection",
]
categories = [
    "data-structures",
    "no-std",
]
license = "MIT"
repository = "https://github.com/geeknoid/frozen-collections"
resolver = "2"

[features]
default = [
    "std",
    "macros",
    "serde",
    "emit",
]
emit = ["frozen-collections-core/emit"]
macros = [
    "frozen-collections-macros",
    "frozen-collections-core/macros",
]
serde = ["frozen-collections-core/serde"]
std = ["frozen-collections-core/std"]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.foldhash]
version = "0.2.0"
default-features = false

[dependencies.frozen-collections-core]
version = "0.9.1"
default-features = false

[dependencies.frozen-collections-macros]
version = "0.9.1"
optional = true
default-features = false

[dev-dependencies.criterion]
version = "0.8.2"
default-features = false

[dev-dependencies.frozen-collections-core]
version = "0.9.1"
features = [
    "std",
    "serde",
    "macros",
    "emit",
]
default-features = false

[dev-dependencies.hashbrown]
version = "0.16.1"
features = ["serde"]
default-features = false

[dev-dependencies.quote]
version = "1.0.44"
default-features = false

[dev-dependencies.rand]
version = "0.10.0"
default-features = false

[dev-dependencies.serde]
version = "1.0.228"
default-features = false

[dev-dependencies.serde_json]
version = "1.0.149"
default-features = false

[dev-dependencies.syn]
version = "2.0.117"
features = [
    "printing",
    "parsing",
    "clone-impls",
    "derive",
    "extra-traits",
]
default-features = false

[build-dependencies.rand]
version = "0.10.0"
default-features = false

[build-dependencies.rand_chacha]
version = "0.10.0"
default-features = false

[lints.clippy]
alloc_instead_of_core = "warn"
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
as_pointer_underscore = "warn"
as_underscore = "warn"
assertions_on_result_states = "warn"
clone_on_ref_ptr = "warn"
cognitive_complexity = "allow"
deref_by_slicing = "warn"
disallowed_script_idents = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
empty_structs_with_brackets = "warn"
filetype_is_file = "warn"
fn_to_numeric_cast_any = "warn"
from-iter-instead-of-collect = "allow"
get_unwrap = "warn"
if_then_some_else_none = "warn"
infinite_loop = "warn"
map_err_ignore = "warn"
missing_asserts_for_indexing = "warn"
multiple_unsafe_ops_per_block = "warn"
mutex_atomic = "warn"
mutex_integer = "warn"
needless_raw_strings = "warn"
panic = "warn"
print_stderr = "warn"
print_stdout = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
redundant_type_annotations = "warn"
renamed_function_params = "warn"
rest_pat_in_fully_bound_structs = "warn"
return_and_then = "warn"
semicolon_outside_block = "warn"
std_instead_of_core = "warn"
string_lit_chars_any = "warn"
string_slice = "warn"
suspicious_xor_used_as_pow = "warn"
too_many_lines = "allow"
try_err = "warn"
undocumented_unsafe_blocks = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unneeded_field_pattern = "warn"
unused_result_ok = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"

[lints.clippy.cargo]
level = "warn"
priority = -1

[lints.clippy.complexity]
level = "warn"
priority = -1

[lints.clippy.correctness]
level = "warn"
priority = -1

[lints.clippy.nursery]
level = "warn"
priority = -1

[lints.clippy.pedantic]
level = "warn"
priority = -1

[lints.clippy.perf]
level = "warn"
priority = -1

[lints.clippy.style]
level = "warn"
priority = -1

[lints.rust]
ambiguous_negative_literals = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
redundant_imports = "warn"
redundant_lifetimes = "warn"
single_use_lifetimes = "warn"
trivial_numeric_casts = "warn"
unsafe_op_in_unsafe_fn = "warn"
unused_extern_crates = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
unused_results = "warn"

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