Cargo Features

[dependencies]
ckb-std = { version = "0.16.3", default-features = false, features = ["calc-hash", "allocator", "native-simulator", "dlopen-c", "build-with-clang", "libc", "dummy-atomic", "log", "type-id"] }
default = allocator, calc-hash, ckb-types, dummy-atomic, libc

These default features are set whenever ckb-std is added without default-features = false somewhere in the dependency tree.

calc-hash default

Enables calc-hash of ckb-gen-types

ckb-gen-types:

Enable the calc-hash extension for CKB contract development in no-std env

allocator default = buddy-alloc
native-simulator = ckb-x64-simulator
dlopen-c = libc

Affects ckb-std::dynamic_loading_c_impl

build-with-clang
libc default dlopen-c?
dummy-atomic default log?

work with target-feature=-a Cargo flag

Affects ckb-std::dummy_atomic

log = dummy-atomic

Enables log

Affects ckb-std::logger

type-id = ckb-hash, ckb-types

require ckb-hash

Affects ckb-std::type_id

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.

ckb-types default calc-hash type-id?

Enables ckb-gen-types

Affects ckb-std::high_level, ckb-std::dynamic_loading

ckb-hash type-id?
buddy-alloc allocator
ckb-x64-simulator native-simulator?