Cargo Features

serde-json-core = { version = "0.5.1", default-features = false, features = ["std", "custom-error-messages"] }
default = heapless

The heapless feature is set by default whenever serde-json-core is added without default-features = false somewhere in the dependency tree.


Enables std of serde


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

custom-error-messages = heapless

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.

heapless default custom-error-messages?

Enables heapless ^0.7

Affects ser::to_string, ser::to_vec