# 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 = "2018"
name = "tinyvec"
version = "1.11.0"
authors = ["Lokathor <zefria@gmail.com>"]
build = false
exclude = [
    "/.github",
    "/*.py",
    "/*.sh",
    "/src-backup",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "`tinyvec` provides 100% safe vec-like data structures."
readme = "README.md"
keywords = [
    "vec",
    "no_std",
    "no-std",
]
categories = [
    "data-structures",
    "no-std",
]
license = "Zlib OR Apache-2.0 OR MIT"
repository = "https://github.com/Lokathor/tinyvec"

[package.metadata.docs.rs]
features = [
    "alloc",
    "std",
    "grab_spare_slice",
    "latest_stable_rust",
    "serde",
    "borsh",
    "defmt",
]
rustdoc-args = [
    "--cfg",
    "docs_rs",
]

[package.metadata.playground]
features = [
    "alloc",
    "std",
    "grab_spare_slice",
    "latest_stable_rust",
    "serde",
    "borsh",
]

[features]
alloc = ["tinyvec_macros"]
debugger_visualizer = []
default = []
experimental_write_impl = []
grab_spare_slice = []
latest_stable_rust = ["rustc_1_61"]
nightly_slice_partition_dedup = []
real_blackbox = ["criterion/real_blackbox"]
rustc_1_40 = []
rustc_1_55 = []
rustc_1_57 = []
rustc_1_61 = ["rustc_1_57"]
serde = ["dep:serde_core"]
std = ["alloc"]

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

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

[[test]]
name = "debugger_visualizer"
path = "tests/debugger_visualizer.rs"
test = false
required-features = ["debugger_visualizer"]

[[test]]
name = "tinyvec"
path = "tests/tinyvec.rs"
required-features = [
    "alloc",
    "std",
]

[[bench]]
name = "macros"
path = "benches/macros.rs"
harness = false
required-features = ["alloc"]

[[bench]]
name = "smallvec"
path = "benches/smallvec.rs"
harness = false
required-features = [
    "alloc",
    "real_blackbox",
]

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

[dependencies.borsh]
version = "1.2.0"
optional = true
default-features = false

[dependencies.defmt]
version = "1.0"
optional = true

[dependencies.generic-array]
version = "1.1.1"
optional = true
default-features = false

[dependencies.serde_core]
version = "1.0"
optional = true
default-features = false

[dependencies.tinyvec_macros]
version = "0.1"
optional = true

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

[dev-dependencies.debugger_test]
version = "0.1"

[dev-dependencies.debugger_test_parser]
version = "0.1"

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

[dev-dependencies.smallvec]
version = "1"

[profile.bench]
debug = 2

[profile.dev]
lto = "thin"
