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