Cargo Features
[dependencies]
ckb-gen-types = { version = "0.120.0", default-features = false, features = ["calc-hash", "check-data", "serialized-size", "std"] }
- default = std
-
The
std
feature is set by default wheneverckb-gen-types
is added without
somewhere in the dependency tree.default-features = false - calc-hash serialized-size?
-
Enable the
calc-hash
extension for CKB contract development inno-std
envEnables ckb-contract of ckb-hash
- check-data
-
Enable the
check-data
extension for CKB contract development inno-std
env - serialized-size = calc-hash
-
Enable the
serialized-size
extension for CKB contract development inno-std
env - std default = ckb-error, ckb-fixed-hash, ckb-occupied-capacity, numext-fixed-uint
-
Enable all in
std
env
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.