Cargo Features
[dependencies]
ckb-std = { version = "0.16.4", 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
somewhere in the dependency tree.default-features = false - calc-hash default
-
Enables calc-hash of ckb-gen-types ^0.119
ckb-gen-types:
Enable the
calc-hash
extension for CKB contract development inno-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 flagAffects
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 ^0.119
Affects
ckb-std::high_level
,ckb-std::dynamic_loading
… - ckb-hash type-id?
-
Enables ckb-hash ^0.119
- buddy-alloc allocator
- ckb-x64-simulator native-simulator?