Cargo Features

cid = { version = "0.11.0", 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

alloc serde? std

Enables alloc of core2, multibase, alloc of multihash


Enables arbitrary, arb of multihash, quickcheck and rand


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

serde-codec = serde

Deprecated, don't use.

Affects cid::serde

serde serde-codec? = alloc

Enables serde of multihash, serde and serde_bytes