Cargo Features

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

The std feature is set by default whenever cid-nostd 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-nostd::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-nostd::serde