Cargo Features

[dependencies]
nson = { version = "0.14.0-rc3", default-features = false, features = ["std", "alloc", "serde", "json"] }
default = alloc, serde

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

std = alloc

Enables std and std_rng of rand, std of optional serde, optional serde_bytes, and optional serde_json and std of hex, indexmap, once_cell, and optional base64

once_cell:

Enables once_cell::sync module.

Affects map::Map

alloc default std? = hash32

Enables alloc of optional base64, hex, once_cell, optional serde, optional serde_bytes, and optional serde_json

once_cell:

Enables once_cell::race::OnceBox type.

serde default json? = serde_bytes

Enables serde

Affects decode::from_nson, decode::from_bytes, encode::to_nson, encode::to_bytes, nson::serde

json = base64, serde, serde_json

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.

hash32 alloc
once_cell alloc std?
serde_bytes serde
serde_json json?
base64 json?