Cargo Features

[dependencies]
serde_encom = { version = "0.3.4", default-features = false, features = ["std", "alloc", "preserve_order", "unbounded_depth"] }

FEATURES

default = std

The std feature is set by default whenever serde_encom is added without default-features = false somewhere in the dependency tree.

std default preserve_order?

Enables std of atoi_simd and serde

serde:

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

Affects des::from_reader, read::IoRead

alloc

Provide integration for heap-allocated collections without depending on the rest of the Rust standard library. NOTE: Disabling both std and alloc features is not supported yet.

Enables alloc of serde

preserve_order = indexmap, std

Make serde_encom::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.

unbounded_depth

Provide a method disable_recursion_limit to parse arbitrarily deep JSON structures without any consideration for overflowing the stack. When using this feature, you will want to provide some other way to protect against stack overflows, such as by wrapping your Deserializer in the dynamically growing stack adapter provided by the serde_stacker crate. Additionally you will need to be careful around other recursive operations on the parsed result which may overflow the stack after deserialization has completed, including, but not limited to, Display and Debug and Drop impls.

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?