# 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.90"
name = "facet-postcard"
version = "0.44.7"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Postcard binary format for facet with Tier-0 and Tier-2 JIT deserialization"
homepage = "https://facet.rs"
readme = "README.md"
keywords = [
    "postcard",
    "binary",
    "serialization",
    "facet",
    "jit",
]
categories = [
    "encoding",
    "parsing",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/facet-rs/facet-format"

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

[package.metadata.cargo-shear]
ignored = ["facet-path"]

[features]
alloc = [
    "facet-core/alloc",
    "facet-reflect/alloc",
    "facet-path/alloc",
]
axum = [
    "std",
    "dep:axum-core",
    "dep:http",
    "dep:http-body-util",
]
bytes = ["facet-core/bytes"]
bytestring = [
    "facet-core/bytestring",
    "dep:bytestring",
]
camino = [
    "facet-core/camino",
    "dep:camino",
]
chrono = [
    "facet-core/chrono",
    "dep:chrono",
]
ci = ["jit"]
compact_str = [
    "facet-core/compact_str",
    "dep:compact_str",
]
default = ["std"]
jiff02 = [
    "facet-core/jiff02",
    "dep:jiff",
]
jit = ["facet-format/jit"]
net = [
    "facet-format/net",
    "facet-core/net",
]
ordered-float = [
    "facet-core/ordered-float",
    "dep:ordered-float",
]
smartstring = [
    "facet-core/smartstring",
    "dep:smartstring",
]
std = [
    "alloc",
    "facet-core/std",
    "facet-reflect/std",
    "facet-path/std",
]
time = [
    "facet-core/time",
    "dep:time",
]
ulid = [
    "facet-core/ulid",
    "dep:ulid",
]
uuid = [
    "facet-core/uuid",
    "dep:uuid",
]

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

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

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

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

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

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

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

[dependencies.axum-core]
version = "0.5"
optional = true
default-features = false

[dependencies.bytestring]
version = "^1.4.0"
optional = true
default-features = false

[dependencies.camino]
version = "^1.2.1"
optional = true

[dependencies.chrono]
version = "^0.4.42"
features = ["alloc"]
optional = true
default-features = false

[dependencies.compact_str]
version = "^0.9.0"
optional = true
default-features = false

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

[dependencies.facet-format]
version = "0.44.7"

[dependencies.facet-path]
version = "0.44"
features = [
    "alloc",
    "alloc",
]
default-features = false

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

[dependencies.facet-value]
version = "0.44"
features = ["std"]
default-features = false

[dependencies.http]
version = "^1.4.0"
optional = true

[dependencies.http-body-util]
version = "0.1"
optional = true
default-features = false

[dependencies.jiff]
version = "^0.2.16"
optional = true

[dependencies.ordered-float]
version = "5.0.0"
optional = true
default-features = false

[dependencies.smartstring]
version = "^1.0.1"
optional = true
default-features = false

[dependencies.time]
version = "^0.3.44"
features = [
    "formatting",
    "macros",
    "parsing",
]
optional = true

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

[dependencies.ulid]
version = "^1.2.1"
optional = true

[dependencies.uuid]
version = "^1.19.0"
optional = true

[dev-dependencies.bytes]
version = "^1.11.0"
default-features = false

[dev-dependencies.chrono]
version = "^0.4.42"
features = [
    "alloc",
    "clock",
]
default-features = false

[dev-dependencies.divan]
version = "^0.1.21"

[dev-dependencies.facet]
version = "0.45"
features = [
    "std",
    "std",
    "all-impls",
    "doc",
]
default-features = false

[dev-dependencies.facet-json]
version = "0.44.7"

[dev-dependencies.facet-json-classics]
version = "0.44.3"

[dev-dependencies.facet-testhelpers]
version = "0.44"
default-features = false

[dev-dependencies.jiff]
version = "^0.2.16"

[dev-dependencies.ordered-float]
version = "5.0.0"
default-features = false

[dev-dependencies.postcard]
version = "1"
features = ["alloc"]

[dev-dependencies.serde]
version = "^1.0.228"
features = [
    "alloc",
    "derive",
    "rc",
    "derive",
    "std",
]
default-features = false

[dev-dependencies.serde_bytes]
version = "0.11"

[dev-dependencies.serde_json]
version = "^1.0.145"
features = ["alloc"]

[dev-dependencies.time]
version = "^0.3.44"
features = [
    "formatting",
    "macros",
    "parsing",
]

[dev-dependencies.ulid]
version = "^1.2.1"

[dev-dependencies.uuid]
version = "^1.19.0"
features = ["v4"]

[lints.clippy]
disallowed_methods = "deny"

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