Cargo Features

[dependencies]
obce = { version = "0.1.0", default-features = false, features = ["std", "substrate", "ink", "substrate-std", "ink-std", "runtime-benchmarks"] }
default = std

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

std default ink-std? substrate-std?

Enables std of parity-scale-codec and scale-info

parity-scale-codec:

Common deps

substrate substrate-std? = frame-support, frame-system, pallet-contracts, sp-core, sp-runtime, sp-std

Affects obce::substrate

ink ink-std?

Enables ink ^4.2.0

Ink deps

Affects obce::ink_lang

substrate-std = std, substrate

Enables std of frame-support ^23, frame-system ^23, pallet-contracts ^22, sp-core ^23, sp-runtime ^26, sp-std ^10, and sp-weights ^22

sp-core:

Substrate deps

ink-std = ink, std

Enables std of ink ^4.2.0 and ink_engine ^4.2.0

runtime-benchmarks

Enables runtime-benchmarks of frame-support ^23, frame-system ^23, pallet-contracts ^22, and sp-runtime ^26

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.

sp-core substrate? substrate-std?

Enables sp-core ^23

sp-runtime runtime-benchmarks? substrate? substrate-std?

Enables sp-runtime ^26

sp-std substrate? substrate-std?

Enables sp-std ^10

sp-weights substrate-std?

Enables sp-weights ^22

frame-support runtime-benchmarks? substrate? substrate-std?

Enables frame-support ^23

frame-system runtime-benchmarks? substrate? substrate-std?

Enables frame-system ^23

pallet-contracts runtime-benchmarks? substrate? substrate-std?

Enables pallet-contracts ^22

ink_engine ink-std?

Enables ink_engine ^4.2.0