# 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.89.0"
name = "facet-solver"
version = "0.32.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Constraint solver for facet - resolves type shapes from field names"
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"

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

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

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

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

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

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

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

[dependencies.facet-core]
version = "0.32.1"
default-features = false

[dependencies.facet-reflect]
version = "0.32.1"
default-features = false

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

[dev-dependencies.divan]
version = "0.1"

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

[dev-dependencies.miette]
version = "7"
default-features = false

[dev-dependencies.thiserror]
version = "2"

[dev-dependencies.tracing]
version = "0.1"

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = ["env-filter"]
