# 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"
name = "heapsz"
version = "0.1.0"
authors = ["Neil Shen <overvenus@gmail.com>"]
build = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "A crate for calculating the heap usage of a data structure."
documentation = "https://docs.rs/heapsz"
readme = "README.md"
license = "MIT"
repository = "https://github.com/overvenus/heapsz"

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

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

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

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

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

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

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

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

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

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

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

[dependencies.protobuf2]
version = "2"
optional = true
package = "protobuf"

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

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

[features]
bytes = ["dep:bytes"]
protobuf2 = ["dep:protobuf2"]