# 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.81.0"
name = "capnp"
version = "0.26.0"
authors = ["David Renshaw <dwrenshaw@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "runtime library for Cap'n Proto data encoding"
documentation = "https://docs.rs/capnp/"
readme = "README.md"
keywords = [
    "encoding",
    "protocol",
    "serialization",
]
license = "MIT"
repository = "https://github.com/capnproto/capnproto-rust"

[features]
alloc = ["embedded-io?/alloc"]
default = [
    "std",
    "alloc",
]
rpc_try = []
std = ["embedded-io?/std"]
sync_reader = []
unaligned = []

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.embedded-io]
version = "0.7.1"
optional = true
default-features = false

[dependencies.quickcheck]
version = "1"
optional = true

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

[lints.clippy]
missing_safety_doc = "allow"
type_complexity = "allow"

[lints.rust]
unreachable_pub = "deny"
