Cargo Features

[dependencies]
cid = { version = "0.11.1", default-features = false, features = ["std", "alloc", "arb", "scale-codec", "serde-codec", "serde"] }
default = std

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

std default = alloc

Enables alloc of core2, std of multihash and unsigned-varint

Affects cid::ReadmeDoctest

alloc serde? std

Enables multibase, alloc of core2, alloc of multihash

arb

Enables arbitrary, quickcheck and rand, arb of multihash

scale-codec

Enables parity-scale-codec, scale-codec of multihash

serde-codec = serde

Deprecated, don't use.

serde serde-codec? = alloc

Enables serde and serde_bytes, serde of multihash

Affects cid::serde