Docs.rs
ic-canister-kit-1.2.0
Platform
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
ic-canister-kit 1.2.0
An ic canister package
Crate
Source
Builds
Feature flags
Documentation
Coverage
100%
468
out of
468
items documented
0
out of
229
items with examples
Size
Source code size: 375.41 kB
This is the summed size of all the files inside the crates.io package for this release.
Documentation size: 17.97 MB
This is the summed size of all files generated by rustdoc for all configured targets
Ø build duration
this release: 45s
Average build duration of
successful
builds.
all releases: 26s
Average build duration of
successful
builds in releases after 2024-10-23.
Links
lazyanubis/ic-canister-kit
0
0
0
crates.io
Dependencies
base32 ^0.5
normal
optional
candid ^0.10.26
normal
optional
ciborium ^0.2
normal
optional
crc32fast ^1.5.0
normal
optional
hex ^0.4
normal
optional
ic-cdk ^0.20
normal
optional
ic-cdk-bitcoin-canister ^0.1
normal
optional
ic-cdk-management-canister ^0.1
normal
optional
ic-cdk-timers ^1.0
normal
optional
ic-ledger-types ^0.16
normal
optional
ic-management-canister-types ^0.7
normal
optional
ic-stable-structures ^0.7
normal
optional
icrc-ledger-types ^0.1.13
normal
optional
serde ^1.0
normal
optional
serde_json ^1.0
normal
optional
sha2 ^0.10
normal
optional
Versions
1.3.3
(2026-07-16)
1.3.2
(2026-07-16)
1.3.1
(2026-07-16)
1.3.0
(2026-07-15)
1.2.4
(2026-05-17)
1.2.3
(2026-04-24)
1.2.2
(2026-04-23)
1.2.1
(2026-03-27)
1.2.0
(2026-03-19)
1.1.5
(2026-01-15)
1.1.4
(2025-09-29)
1.1.3
(2025-09-16)
1.1.2
(2025-09-16)
1.1.1
(2025-09-16)
1.1.0
(2025-04-24)
1.0.37
(2025-04-18)
1.0.36
(2025-04-10)
1.0.35
(2025-04-09)
1.0.34
(2025-04-09)
1.0.33
(2025-04-09)
1.0.32
(2025-04-09)
1.0.31
(2025-04-09)
1.0.30
(2025-04-09)
1.0.29
(2025-04-09)
1.0.28
(2025-04-09)
1.0.27
(2025-04-09)
1.0.26
(2025-04-08)
1.0.25
(2025-04-08)
1.0.24
(2025-04-08)
1.0.23
(2025-04-08)
1.0.22
(2025-04-08)
1.0.21
(2025-04-02)
1.0.20
(2025-03-12)
1.0.19
(2025-03-04)
1.0.18
(2025-03-04)
1.0.17
(2024-12-31)
1.0.16
(2024-12-31)
1.0.15
(2024-10-26)
1.0.14
(2024-10-25)
1.0.13
(2024-10-25)
1.0.12
(2024-10-24)
1.0.11
(2024-10-23)
1.0.10
(2024-10-11)
1.0.9
(2024-05-15)
1.0.8
(2024-03-30)
1.0.7
(2024-03-30)
1.0.6
(2024-03-22)
1.0.5
(2024-03-18)
1.0.4
(2024-03-17)
1.0.3
(2024-03-17)
1.0.2
(2024-03-17)
1.0.1
(2024-03-16)
1.0.0
(2024-03-16)
0.3.21
(2023-11-22)
0.3.20
(2023-11-22)
0.3.19
(2023-11-21)
0.3.18
(2023-11-14)
0.3.17
(2023-11-14)
0.3.16
(2023-11-14)
0.3.15
(2023-11-14)
0.3.14
(2023-11-11)
0.3.13
(2023-11-07)
0.3.12
(2023-11-07)
0.3.11
(2023-11-03)
0.3.10
(2023-11-03)
0.3.9
(2023-11-03)
0.3.8
(2023-11-02)
0.3.7
(2023-11-02)
0.3.6
(2023-11-02)
0.3.5
(2023-11-02)
0.3.4
(2023-11-01)
0.3.3
(2023-11-01)
0.3.2
(2023-11-01)
0.3.1
(2023-10-31)
0.3.0
(2023-10-31)
0.2.0
(2023-08-23)
0.1.7
(2023-08-16)
0.1.6
(2023-08-16)
0.1.5
(2023-08-16)
0.1.4
(2023-08-16)
0.1.3
(2023-08-16)
0.1.2
(2023-07-17)
0.1.1
(2023-07-17)
0.1.0
(2023-07-13)
Owners
ic-canister-kit
ic-canister-kit
合约错误处理
assert!:通常用于调试和确保程序内部的逻辑正确性。例如,检查函数的输入参数是否符合预期,或者检查某个中间计算结果是否在合理范围内。
ic_cdk::trap:更侧重于处理一些严重的错误情况,比如在合约无法继续执行时使用。它会直接终止合约执行,并向调用者返回一个错误信息。