# 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-value"
version = "0.32.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Memory-efficient dynamic value type for facet, supporting JSON-like data plus bytes"
readme = "README.md"
keywords = [
    "serialization",
    "value",
    "dynamic",
    "json",
]
categories = [
    "encoding",
    "data-structures",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/facet-rs/facet"

[features]
alloc = [
    "facet-core/alloc",
    "facet-reflect/alloc",
    "dep:facet-reflect",
]
bolero-inline-tests = ["alloc"]
ci = []
default = ["std"]
diagnostics = [
    "alloc",
    "dep:miette",
    "dep:facet-pretty",
    "dep:syntect",
    "dep:once_cell",
]
std = [
    "alloc",
    "dep:indexmap",
]

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

[[example]]
name = "from_value_showcase"
path = "examples/from_value_showcase.rs"
required-features = ["diagnostics"]

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

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

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

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

[dependencies.facet-pretty]
version = "0.32.0"
optional = true

[dependencies.facet-reflect]
version = "0.32.0"
optional = true
default-features = false

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

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

[dependencies.once_cell]
version = "1"
optional = true

[dependencies.static_assertions]
version = "1.1"

[dependencies.syntect]
version = "5.3"
optional = true

[dev-dependencies.bolero]
version = "0.13"

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

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

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

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

[dev-dependencies.owo-colors]
version = "4"

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