# 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.92"
name = "facet-solver"
version = "0.50.0-rc.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Constraint solver for facet - resolves type shapes from field names"
homepage = "https://facet.rs"
readme = "README.md"
keywords = [
    "reflection",
    "introspection",
    "facet",
    "solver",
    "serde",
]
categories = [
    "development-tools",
    "rust-patterns",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/facet-rs/facet"

[package.metadata."docs.rs"]
rustdoc-args = [
    "--html-in-header",
    "arborium-header.html",
]

[features]
alloc = [
    "facet-core/alloc",
    "facet-reflect/alloc",
]
default = [
    "std",
    "suggestions",
]
std = ["alloc"]
suggestions = [
    "strsim",
    "alloc",
]
tracing = ["facet-reflect/tracing"]

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

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

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

[dependencies.facet-core]
version = "0.50.0-rc.3"
default-features = false

[dependencies.facet-reflect]
version = "0.50.0-rc.3"
default-features = false

[dependencies.strsim]
version = "0.11"
optional = true

[dev-dependencies.divan]
version = "4.7.0"
package = "codspeed-divan-compat"

[dev-dependencies.json-event-parser]
version = "0.2"

[dev-dependencies.tracing]
version = "^0.1.43"
features = [
    "std",
    "attributes",
]
default-features = false

[lints.clippy]
disallowed_methods = "deny"

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