Cargo Features

[dependencies]
scale-serialization = { version = "1.0.0-beta2", default-features = false, features = ["std", "experimental-serializer", "json", "codec", "hex"] }
default = codec, experimental-serializer, hex, json, std

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

std default

Enables std of bytes and scale-info

experimental-serializer default
json default

Enables preserve_order of serde_json

serde_json:

Make serde_json::Map use a representation which maintains insertion order.
This allows data to be read into a Value and written back to a JSON string while preserving the order of map keys in the input.

Affects serializer::to_bytes_from_iter, serializer::to_vec_from_iter

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.

serde_json json
codec default

Enables parity-scale-codec

hex default