Cargo Features

[dependencies]
radix-sbor-derive = { version = "1.3.0", default-features = false, features = ["std", "alloc", "trace"] }
default = std

Currently, dependencies of procedural macros are imported to host crates. This may accidentally enable unwanted features of host dependencies, i.e. serde, serde_json, sbor and scrypto-abi.

To work around with it, we've added features std and alloc for scrypto-derive, even though it only works under std environment.

See:

std default
alloc
trace

Enable trace

Enables trace of sbor-derive-common