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]
6name = "yoke"
7description = "Abstraction allowing borrowed data to be carried along with the backing data it borrows from"
8version = "0.7.5"
9authors = ["Manish Goregaokar <manishsmail@gmail.com>"]
10categories = ["data-structures", "memory-management", "caching", "no-std"]
11keywords = ["zerocopy", "serialization", "lifetime", "borrow", "self-referential"]
12
13edition.workspace = true
14include.workspace = true
15license.workspace = true
16repository.workspace = true
17rust-version.workspace = true
18
19[package.metadata.workspaces]
20independent = true
21
22[features]
23default = ["alloc", "zerofrom"]
24derive = ["dep:yoke-derive", "zerofrom/derive"]
25alloc = ["stable_deref_trait/alloc", "serde?/alloc", "zerofrom/alloc"]
26serde = ["dep:serde"]
27zerofrom = ["dep:zerofrom"]
28
29[package.metadata.docs.rs]
30all-features = true
31
32[package.metadata.cargo-all-features]
33# We have tons of features here, limit the amount of tests we run
34max_combination_size = 3
35
36[dependencies]
37stable_deref_trait = { workspace = true }
38
39yoke-derive = { workspace = true, optional = true }
40
41serde = { workspace = true, optional = true }
42zerofrom = { workspace = true, optional = true}
43
44[dev-dependencies]
45bincode = { workspace = true }
46postcard = { workspace = true }
47serde = { workspace = true }
48