tls_codec 0.5.0

A pure Rust implementation of the TLS (de)serialization
Documentation
# 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.85"
name = "tls_codec"
version = "0.5.0"
authors = ["RustCrypto Developers"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A pure Rust implementation of the TLS (de)serialization"
homepage = "https://github.com/RustCrypto/formats/tree/master/tls_codec"
documentation = "https://docs.rs/tls_codec/"
readme = "README.md"
license = "Apache-2.0 OR MIT"
repository = "https://github.com/RustCrypto/formats"
resolver = "2"

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

[features]
arbitrary = [
    "std",
    "dep:arbitrary",
]
conditional_deserialization = [
    "derive",
    "tls_codec_derive/conditional_deserialization",
]
default = ["std"]
derive = ["tls_codec_derive"]
future_deprecations = []
mls = []
serde = [
    "std",
    "dep:serde",
    "dep:serde_bytes",
]
std = ["tls_codec_derive?/std"]

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

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

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

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

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

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

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

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

[dependencies.arbitrary]
version = "1.4"
features = ["derive"]
optional = true

[dependencies.serde]
version = "1.0.228"
features = ["derive"]
optional = true

[dependencies.serde_bytes]
version = "0.11.19"
optional = true

[dependencies.tls_codec_derive]
version = "=0.5.0"
optional = true

[dependencies.zeroize]
version = "1.9"
features = ["alloc"]
default-features = false

[dev-dependencies.ciborium]
version = "0.2.2"

[dev-dependencies.criterion]
version = "0.6"
default-features = false

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

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