Cargo Features

[dependencies]
sbor = { version = "1.2.0-dev", default-features = false, features = ["std", "alloc", "serde", "trace", "fuzzing"] }
default = std

You should enable either std or alloc

std default

preserve_order requires std

Enables preserve_order and std of serde_json, std of hex, radix-rust, and optional serde

alloc

Enables alloc of hex, spin_no_std of lazy_static and alloc of radix-rust, serde_json, and optional serde

serde:

Provide impls for types in the Rust core allocation and collections library including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may be enabled without depending on all of std.

serde

Enable serde derives for SBOR value and type models

Enables serde, serde of radix-rust

Affects representations::serde_serialization

trace

Enable tracing

Enables trace of sbor-derive

fuzzing = arbitrary

This flag is set by fuzz-tests framework and it is used to disable/enable some optional features to let fuzzing work

Enables fuzzing of radix-rust

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.

arbitrary fuzzing?