Cargo Features
[dependencies]
ic-canister-kit = { version = "1.0.17", default-features = false, features = ["common", "times", "identity", "canister", "number", "token", "http", "ecdsa", "bitcoin", "functions", "call-once", "schedule", "stable", "canister-did", "all"] }
- default = common
-
The
common
feature is set by default wheneveric-canister-kit
is added without
somewhere in the dependency tree.default-features = false - common default all? call-once? = candid, serde
-
通用工具
Affects
ic-canister-kit::common
… - times all? functions? schedule? = ic-cdk
-
时间相关
Affects
ic-canister-kit::times
… - identity all? canister? = candid, crc32fast, hex, ic-cdk, sha2
-
身份相关
Affects
ic-canister-kit::identity
… - canister all? bitcoin? ecdsa? http? number? token? = identity, serde
-
罐子相关
Affects
ic-canister-kit::canister
… - number all? = base32, canister
-
数字相关
Affects
ic-canister-kit::number
… - token all? = canister, ic-ledger-types
-
代币标准
Affects
ic-canister-kit::token
… - http all? = canister, serde, serde_json
-
http 相关
Affects
ic-canister-kit::http
… - ecdsa all? = canister
-
ecdsa 相关
Affects
ic-canister-kit::ecdsa
… - bitcoin all? = canister
-
bitcoin 相关
Affects
ic-canister-kit::bitcoin
… - functions all? schedule? stable? = ciborium, ic-cdk-timers, times
-
functions 相关
Affects
ic-canister-kit::functions
… - call-once all? = common
-
调用一次
Affects
common::once
… - schedule all? = functions, times
-
定时任务
- stable all? = functions, ic-stable-structures
-
稳定内存
Affects
ic-canister-kit::stable
… - canister-did all? = serde
-
candid 类型
Affects
ic-canister-kit::candid
… - all = bitcoin, call-once, canister, canister-did, common, ecdsa, functions, http, identity, number, schedule, stable, times, token
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.
- candid common identity?
- ic-cdk identity? times?
- ic-ledger-types token?
-
Enables ic-ledger-types
token 类型
- ic-cdk-timers functions?
-
Enables ic-cdk-timers
定时器
- ic-stable-structures stable?
-
Enables ic-stable-structures
持久化内存
- sha2 identity?
-
Enables sha2
hash
- crc32fast identity?
-
Enables crc32fast
循环校验
- hex identity?
-
Enables hex
16进制
- base32 number?
-
Enables base32
base32 加密解密
- serde canister? canister-did? common http?
-
Enables serde
序列化/反序列化框架
- serde_json http?
-
Enables serde_json
json
- ciborium functions?
-
Enables ciborium
序列化/反序列化