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 wheneverserde-json-core
is added without
somewhere in the dependency tree.default-features = false - std
-
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
…