| 1 |
# This file is part of ICU4X. For terms of use, please see the file |
| 2 |
# called LICENSE at the top level of the ICU4X source tree |
| 3 |
# (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ). |
| 4 |
|
| 5 |
[package] |
| 6 |
name = "zerovec" |
| 7 |
description = "Zero-copy vector backed by a byte array" |
| 8 |
version = "0.11.5" |
| 9 |
categories = ["rust-patterns", "memory-management", "caching", "no-std", "data-structures"] |
| 10 |
keywords = ["zerocopy", "serialization", "zero-copy", "serde"] |
| 11 |
|
| 12 |
authors.workspace = true |
| 13 |
edition.workspace = true |
| 14 |
include.workspace = true |
| 15 |
license.workspace = true |
| 16 |
repository.workspace = true |
| 17 |
rust-version = "1.82" |
| 18 |
|
| 19 |
[package.metadata.workspaces] |
| 20 |
independent = true |
| 21 |
|
| 22 |
[package.metadata.docs.rs] |
| 23 |
all-features = true |
| 24 |
|
| 25 |
[dependencies] |
| 26 |
zerofrom = { workspace = true } |
| 27 |
|
| 28 |
zerovec-derive = { workspace = true, optional = true} |
| 29 |
|
| 30 |
databake = { workspace = true, features = ["derive"], optional = true } |
| 31 |
serde = { workspace = true, features = ["derive"], optional = true } |
| 32 |
|
| 33 |
yoke = { workspace = true, optional = true } |
| 34 |
twox-hash = { workspace = true, optional = true } |
| 35 |
|
| 36 |
[features] |
| 37 |
derive = ["dep:zerovec-derive"] |
| 38 |
hashmap = ["dep:twox-hash", "alloc"] |
| 39 |
yoke = ["dep:yoke"] |
| 40 |
serde = ["dep:serde"] |
| 41 |
databake = ["dep:databake"] |
| 42 |
alloc = ["serde?/alloc"] |
| 43 |
# No longer does anything |
| 44 |
std = [] |
| 45 |
|
| 46 |
[package.metadata.cargo-all-features] |
| 47 |
# We have tons of features here, limit the amount of tests we run |
| 48 |
max_combination_size = 3 |
| 49 |
|
| 50 |
[lib] |
| 51 |
bench = false # This option is required for Benchmark CI |
| 52 |
|
| 53 |
[[bench]] |
| 54 |
name = "zerovec" |
| 55 |
harness = false |
| 56 |
|
| 57 |
[[bench]] |
| 58 |
name = "zerovec_serde" |
| 59 |
harness = false |
| 60 |
required-features = ["serde"] |
| 61 |
|
| 62 |
[[bench]] |
| 63 |
name = "vzv" |
| 64 |
harness = false |
| 65 |
|
| 66 |
[[bench]] |
| 67 |
name = "zerovec_iai" |
| 68 |
harness = false |
| 69 |
|
| 70 |
[[bench]] |
| 71 |
name = "zeromap" |
| 72 |
harness = false |
| 73 |
required-features = ["serde", "hashmap", "derive"] |
| 74 |
|
| 75 |
[[example]] |
| 76 |
name = "zv_serde" |
| 77 |
required-features = ["serde"] |