# 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.95"
name = "smix-error"
version = "0.2.1"
authors = ["Golia <doracawl@golia.jp>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "smix-error — ExpectationFailure + FailureCode + AI-readable to_prompt + buildSuggestions (stone, cold path). Ported from now-retired TS source: src/core/error.ts + src/core/schemas.ts:failureCodeSchema/serializedFailureSchema."
homepage = "https://github.com/goliajp/smix"
documentation = "https://docs.rs/smix-error"
readme = "README.md"
keywords = [
    "error",
    "ai-readable",
    "ios",
    "testing",
]
categories = [
    "development-tools::testing",
    "rust-patterns",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/goliajp/smix"

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

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

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

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

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

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

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.smix-screen]
version = "0.2.1"

[dependencies.smix-selector]
version = "0.2.1"

[dev-dependencies.criterion]
version = "0.7"
features = [
    "plotters",
    "cargo_bench_support",
]
default-features = false

[dev-dependencies.dhat]
version = "0.3"

[dev-dependencies.serde_json]
version = "1"

[lints.clippy]
result_large_err = "allow"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.rust]
warnings = "deny"
