Cargo Features

ValueBag has no features set by default.

[dependencies]
value-bag = { version = "1.10.0", features = ["inline-i128", "std", "alloc", "owned", "seq", "sval", "sval2", "serde", "serde1", "error", "test"] }
inline-i128

Store 128bit numbers inline instead of as references This may increase the size of ValueBag on some platforms

std error? test? = alloc

Use the standard library

Enables std of optional value-bag-serde1 and optional value-bag-sval2

alloc owned? serde1? std?

Assume an allocator

Enables alloc of optional value-bag-serde1 and optional value-bag-sval2

owned = alloc

Support owned values

Enables owned of optional value-bag-serde1

seq

Utilities for working with sequences

sval = sval2

Add support for sval

sval2 sval? = value-bag-sval2
serde = serde1

Add support for serde

serde1 serde? = alloc, value-bag-serde1

Enables serde1 of optional value-bag-sval2

error = std

Add support for std::error

Affects visit::Visit.visit_error, visit::Visit.visit_borrowed_error

test = std

Add support for testing the contents of a value bag

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

value-bag-serde1 serde1?
value-bag-sval2 sval2?