Cargo Features

[dependencies]
one_err = { version = "0.0.8", default-features = false, features = ["std", "alloc", "preserve_order"] }
default = preserve_order, std

These default features are set whenever one_err is added without default-features = false somewhere in the dependency tree.

std default

Enables std of libc, serde, and serde_json

serde:

Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
Requires a dependency on the Rust standard library.

alloc

Enables alloc of serde and serde_json

serde:

Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.

preserve_order default = indexmap

Enables preserve_order of serde_json

serde_json:

Make serde_json::Map use a representation which maintains insertion order.
This allows data to be read into a Value and written back to a JSON string while preserving the order of map keys in the input.

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.

indexmap preserve_order

Enables indexmap ^1.9.1