Cargo Features

[dependencies]
parity-codec = { version = "4.1.4", default-features = false, features = ["std", "derive", "bit-vec", "full"] }
default = std

The std feature is set by default whenever parity-codec is added without default-features = false somewhere in the dependency tree.

std default = serde

Enables std of bitvec and byte-slice-cast ^0.3.2

bitvec:

The standard library includes the allocator.

Affects codec::MaybeDebugSerde, parity-codec::alloc

derive = parity-codec-derive
bit-vec = bitvec, byte-slice-cast
full

WARNING: DO NOT USE THIS FEATURE IF YOU ARE WORKING ON CONSENSUS CODE!*

Provides implementations for more data structures than just Vec and Box. Concretely it will provide parity-codec implementations for many types that can be found in std and/or alloc (nightly).

This feature was mainly introduced after it became clear that pDSL requires it for the sake of usability of its users.

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](https://rust-lang.github.io/rfcs/3491-remove-implicit-features.html).

serde std
parity-codec-derive derive?
bitvec bit-vec? std
byte-slice-cast bit-vec? std

Enables byte-slice-cast ^0.3.2