[package]
edition = "2024"
rust-version = "1.90"
name = "facet-reflect"
version = "0.46.2"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Build and manipulate values of arbitrary Facet types at runtime while respecting invariants - safe runtime reflection"
homepage = "https://facet.rs"
readme = "README.md"
keywords = [
"reflection",
"introspection",
"facet",
"runtime",
"manipulation",
]
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",
]
[package.metadata."docs.rs"]
rustdoc-args = [
"--html-in-header",
"arborium-header.html",
]
[features]
alloc = [
"facet-core/alloc",
"facet-path/alloc",
]
camino = [
"alloc",
"dep:camino",
"facet-core/camino",
]
ci = ["slow-tests"]
default = [
"std",
"regex",
]
fn-ptr = ["facet-core/fn-ptr"]
fuzz-tests = []
jiff02 = ["facet-core/jiff02"]
regex = ["dep:regex"]
slow-tests = []
std = [
"alloc",
"facet-core/std",
"facet-path/std",
]
time = ["facet-core/time"]
tracing = ["dep:tracing"]
ulid = [
"alloc",
"dep:ulid",
"facet-core/ulid",
]
uuid = [
"alloc",
"dep:uuid",
"facet-core/uuid",
]
[lib]
name = "facet_reflect"
path = "src/lib.rs"
[[test]]
name = "main"
path = "tests/main.rs"
[dependencies.camino]
version = "^1.2.1"
optional = true
[dependencies.facet-core]
version = "0.46.2"
default-features = false
[dependencies.facet-path]
version = "0.46.2"
default-features = false
[dependencies.hashbrown]
version = "0.17"
[dependencies.regex]
version = "1"
features = ["std"]
optional = true
default-features = false
[dependencies.smallvec]
version = "^2.0.0-alpha.10"
[dependencies.tracing]
version = "^0.1.43"
features = ["std"]
optional = true
default-features = false
[dependencies.ulid]
version = "^1.2.1"
optional = true
[dependencies.uuid]
version = "^1.19.0"
optional = true
[dev-dependencies.eyre]
version = "^0.6.12"
[dev-dependencies.insta]
version = "^1.44.3"
[dev-dependencies.proptest]
version = "1.9"
[dev-dependencies.tempfile]
version = "^3.23.0"
[lints.clippy]
disallowed_methods = "deny"
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(facet_no_doc)",
"cfg(kani)",
]