Cargo Features

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

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 ^0.15 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.

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?