# 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 = "litemap"
version = "0.7.2"
authors = ["The ICU4X Project Developers"]
include = [
    "data/**/*",
    "src/**/*",
    "examples/**/*",
    "benches/**/*",
    "tests/**/*",
    "Cargo.toml",
    "LICENSE",
    "README.md",
]
description = "A key-value Map implementation based on a flat, sorted Vec."
documentation = "https://docs.rs/litemap"
readme = "README.md"
keywords = [
    "sorted",
    "vec",
    "map",
    "hashmap",
    "btreemap",
]
license-file = "LICENSE"
repository = "https://github.com/unicode-org/icu4x"

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

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

[package.metadata.workspaces]
independent = true

[lib]
bench = false

[[example]]
name = "litemap_bincode"
path = "examples/litemap_bincode.rs"
required-features = ["serde"]

[[example]]
name = "litemap_postcard"
path = "examples/litemap_postcard.rs"
required-features = ["serde"]

[[test]]
name = "serde"
required-features = ["serde"]

[[test]]
name = "store"
required-features = ["testing"]

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

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

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

[dependencies.yoke]
version = "0.7.3"
features = ["derive"]
optional = true
default-features = false

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

[dev-dependencies.bytecheck]
version = "0.6"

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

[dev-dependencies.rkyv]
version = "0.7"
features = ["validation"]

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

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

[features]
alloc = []
bench = ["serde"]
databake = ["dep:databake"]
default = ["alloc"]
serde = ["dep:serde"]
testing = ["alloc"]
yoke = ["dep:yoke"]

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