# 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"
name = "facet-postcard"
version = "0.41.0"
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"

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

[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",
    "dep: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",
    "pretty-errors",
]
jiff02 = [
    "facet-core/jiff02",
    "dep:jiff",
]
jit = ["facet-format/jit"]
net = ["facet-core/net"]
ordered-float = [
    "facet-core/ordered-float",
    "dep:ordered-float",
]
pretty-errors = [
    "facet-path/pretty",
    "facet-reflect/miette",
    "dep:miette",
]
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 = "profile_vec_u32"
path = "examples/profile_vec_u32.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.bytes]
version = "^1.11.0"
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.41.0"
default-features = false

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

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

[dependencies.facet-reflect]
version = "0.41.0"
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.miette]
version = "^7.6.0"
features = ["fancy-no-backtrace"]
optional = true
default-features = false

[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
