# 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.67"
name = "zerovec"
version = "0.10.4"
authors = ["The ICU4X Project Developers"]
include = [
    "data/**/*",
    "src/**/*",
    "examples/**/*",
    "benches/**/*",
    "tests/**/*",
    "Cargo.toml",
    "LICENSE",
    "README.md",
]
description = "Zero-copy vector backed by a byte array"
readme = "README.md"
keywords = [
    "zerocopy",
    "serialization",
    "zero-copy",
    "serde",
]
categories = [
    "rust-patterns",
    "memory-management",
    "caching",
    "no-std",
    "data-structures",
]
license = "Unicode-3.0"
repository = "https://github.com/unicode-org/icu4x"

[package.metadata.cargo-all-features]
denylist = ["bench"]
max_combination_size = 3

[package.metadata.docs.rs]
all-features = true

[package.metadata.workspaces]
independent = true

[lib]
bench = false

[[example]]
name = "zv_serde"
required-features = ["serde"]

[[bench]]
name = "zerovec"
harness = false

[[bench]]
name = "zerovec_serde"
harness = false
required-features = ["serde"]

[[bench]]
name = "vzv"
harness = false

[[bench]]
name = "zerovec_iai"
harness = false

[[bench]]
name = "zeromap"
harness = false
required-features = [
    "serde",
    "hashmap",
    "derive",
]

[dependencies.databake]
version = "0.1.8"
features = ["derive"]
optional = true
default-features = false

[dependencies.serde]
version = "1.0.110"
features = ["alloc"]
optional = true
default-features = false

[dependencies.twox-hash]
version = "1.4.2"
optional = true
default-features = false

[dependencies.yoke]
version = ">=0.6.0, <0.8.0"
optional = true

[dependencies.zerofrom]
version = "0.1.3"
default-features = false

[dependencies.zerovec-derive]
version = "0.10.2"
optional = true
default-features = false

[dev-dependencies.bincode]
version = "1.3.1"

[dev-dependencies.getrandom]
version = "0.2"
features = ["js"]

[dev-dependencies.iai]
version = "0.1.1"

[dev-dependencies.postcard]
version = "1.0.1"
features = ["use-std"]
default-features = false

[dev-dependencies.rand]
version = "0.8"

[dev-dependencies.rand_distr]
version = "0.4"

[dev-dependencies.rand_pcg]
version = "0.3"

[dev-dependencies.rmp-serde]
version = "1.2.0"

[dev-dependencies.serde]
version = "1.0.110"
features = ["derive"]
default-features = false

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

[features]
bench = [
    "serde",
    "databake",
]
databake = ["dep:databake"]
derive = ["dep:zerovec-derive"]
hashmap = ["dep:twox-hash"]
serde = ["dep:serde"]
std = []
yoke = ["dep:yoke"]

[target."cfg(not(target_arch = \"wasm32\"))".dev-dependencies.criterion]
version = "0.5.0"
