1[package]
2name = "value-bag"
3version = "1.11.1"
4authors = ["Ashley Mannix <ashleymannix@live.com.au>"]
5edition = "2021"
6license = "Apache-2.0 OR MIT"
7documentation = "https://docs.rs/value-bag"
8description = "Anonymous structured values"
9repository = "https://github.com/sval-rs/value-bag"
10readme = "README.md"
11keywords = ["serialization", "no_std"]
12categories = ["encoding", "no-std"]
13exclude = [
14 ".github/*",
15]
16
17[package.metadata.docs.rs]
18features = ["std", "error", "sval", "serde", "test", "owned", "seq"]
19
20[workspace]
21members = [
22 "meta/serde1",
23 "meta/sval2",
24]
25
26[features]
27# Store 128bit numbers inline instead of as references
28# This may increase the size of `ValueBag` on some platforms
29inline-i128 = []
30# Store small strings inline instead of as references
31# This requires a more recent Rust toolchain
32inline-str = []
33
34# Use the standard library
35std = [
36 "alloc",
37 "value-bag-sval2?/std",
38 "value-bag-serde1?/std",
39]
40
41# Assume an allocator
42alloc = [
43 "value-bag-sval2?/alloc",
44 "value-bag-serde1?/alloc",
45]
46
47# Support owned values
48owned = [
49 "alloc",
50 "value-bag-serde1?/owned",
51]
52
53# Utilities for working with sequences
54seq = []
55
56# Add support for `sval`
57sval = ["sval2"]
58sval2 = [
59 "value-bag-sval2",
60]
61
62# Add support for `serde`
63serde = ["serde1"]
64serde1 = [
65 "alloc",
66 "value-bag-serde1",
67 "value-bag-sval2?/serde1",
68]
69
70# Add support for `std::error`
71error = [
72 "std",
73]
74
75# Add support for testing the contents of a value bag
76test = ["std"]
77
78[dependencies.value-bag-sval2]
79version = "1.11.1"
80path = "meta/sval2"
81optional = true
82
83[dependencies.value-bag-serde1]
84version = "1.11.1"
85path = "meta/serde1"
86optional = true
87
88[dev-dependencies.value-bag-sval2]
89path = "meta/sval2"
90features = ["test", "json"]
91
92[dev-dependencies.value-bag-serde1]
93path = "meta/serde1"
94features = ["test", "json"]
95
96[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen]
97version = "0.2"
98
99[target.'cfg(target_arch = "wasm32")'.dev-dependencies.wasm-bindgen-test]
100version = "0.3"
101