Cargo Features

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

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

std

Enables std of serde

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
defmt

Enables defmt and defmt-03 of optional heapless

heapless:

Implement defmt::Format from defmt v0.3

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?

Affects ser::to_string, ser::to_vec