Cargo Features

[dependencies]
facet-json = { version = "0.24.6", default-features = false, features = ["std", "alloc", "rich-diagnostics"] }
std default = alloc

Uses libstd and alloc

Enables std of facet-core

Affects facet-json::from_slice, facet-json::from_str, facet-json::to_string, facet-json::peek_to_string, facet-json::to_writer, facet-json::peek_to_writer

alloc std

Enables alloc support

Enables alloc of facet-core, facet-deserialize, and facet-serialize

default = rich-diagnostics, std

These default features are set whenever facet-json is added without default-features = false somewhere in the dependency tree.

rich-diagnostics default

Enables rich-diagnostics of facet-deserialize