Cargo Features
[dependencies]
ic-canister-kit = { version = "1.0.9", default-features = false, features = ["common", "times", "identity", "canister", "number", "token", "http", "ecdsa", "bitcoin", "functions", "call-once", "schedule", "stable", "canister-did", "all"] }
- default all? = bitcoin, canister, common, ecdsa, functions, http, identity, number, times, token
-
These default features are set whenever
ic-canister-kit
is added without
somewhere in the dependency tree.default-features = false - common default call-once? = candid
-
通用工具
Affects
ic-canister-kit::common
… - times default functions schedule? = ic-cdk
-
时间相关
Affects
ic-canister-kit::times
… - identity default canister = candid, crc32fast, hex, ic-cdk, sha2
-
身份相关
Affects
ic-canister-kit::identity
… - canister default bitcoin ecdsa http number token = identity, serde
-
罐子相关
Affects
ic-canister-kit::canister
… - number default = base32, canister
-
数字相关
Affects
ic-canister-kit::number
… - token default = canister, ic-ledger-types
-
代币标准
Affects
ic-canister-kit::token
… - http default = canister, serde, serde_json
-
http 相关
Affects
ic-canister-kit::http
… - ecdsa default = canister
-
ecdsa 相关
Affects
ic-canister-kit::ecdsa
… - bitcoin default = canister
-
bitcoin 相关
Affects
ic-canister-kit::bitcoin
… - functions default 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
-
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.13
- ic-ledger-types token
-
Enables ic-ledger-types ^0.10
token 类型
- ic-cdk-timers functions
-
Enables ic-cdk-timers ^0.7
定时器
- 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 ^0.4
base32 加密解密
- serde canister http
-
Enables serde
序列化/反序列化框架
- serde_json http
-
Enables serde_json
json
- ciborium functions
-
Enables ciborium
序列化/反序列化