# 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 = "2021"
rust-version = "1.75"
name = "buffa-types"
version = "0.8.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Protobuf well-known types for buffa"
readme = false
keywords = [
    "protobuf",
    "protocol-buffers",
    "serialization",
    "no-std",
    "editions",
]
categories = [
    "encoding",
    "no-std",
]
license = "Apache-2.0"
repository = "https://github.com/anthropics/buffa"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
arbitrary = [
    "dep:arbitrary",
    "buffa/arbitrary",
]
chrono = ["dep:chrono"]
default = ["std"]
json = [
    "dep:serde",
    "dep:serde_json",
    "buffa/json",
]
reflect = [
    "dep:buffa-descriptor",
    "buffa-descriptor/reflect",
    "buffa-descriptor/std",
    "std",
]
std = [
    "buffa/std",
    "thiserror/std",
    "serde?/std",
    "serde_json?/std",
]

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

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

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

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

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

[dependencies.arbitrary]
version = "1"
features = ["derive"]
optional = true
default-features = false

[dependencies.buffa]
version = "0.8.0"
features = ["text"]
default-features = false

[dependencies.buffa-descriptor]
version = "0.8.0"
optional = true
default-features = false

[dependencies.bytes]
version = "1"
default-features = false

[dependencies.chrono]
version = "0.4.34"
optional = true
default-features = false

[dependencies.serde]
version = "1"
optional = true
default-features = false

[dependencies.serde_json]
version = "1"
features = ["alloc"]
optional = true
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[dev-dependencies.criterion]
version = "0.5"
