# 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.84.0"
name = "bin-proto"
version = "0.12.8"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Conversion to/from binary for arbitrary types"
documentation = "https://docs.rs/bin-proto"
readme = "README.md"
keywords = [
    "binary",
    "decode",
    "deserialize",
    "encode",
    "serialize",
]
categories = [
    "encoding",
    "no-std::no-alloc",
    "parsing",
]
license = "MIT"
repository = "https://github.com/wojciech-graj/bin-proto"

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

[features]
alloc = [
    "bitstream-io/alloc",
    "no_std_io2/alloc",
]
default = [
    "alloc",
    "derive",
    "std",
]
derive = ["dep:bin-proto-derive"]
prepend-tags = []
std = [
    "alloc",
    "bitstream-io/std",
    "no_std_io2/std",
]

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

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

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

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

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

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

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

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

[dependencies.bin-proto-derive]
version = "0.12.3"
optional = true

[dependencies.bitstream-io]
version = "4.10.0"
default-features = false

[dependencies.no_std_io2]
version = "0.9"
default-features = false

[dev-dependencies.proptest]
version = "1.8.0"
