ic_canister_kit/
lib.rs

1#![doc = include_str!("../README.md")]
2#![deny(unreachable_pub)] // ! lib 需要检查此项
3#![deny(unsafe_code)] // 拒绝 unsafe 代码
4#![deny(missing_docs)] // ! 必须写文档
5#![warn(rustdoc::broken_intra_doc_links)] // 文档里面的链接有效性
6#![warn(clippy::future_not_send)] // 异步代码关联的对象必须是 Send 的
7#![deny(clippy::unwrap_used)] // 不许用 unwrap
8#![deny(clippy::expect_used)] // 不许用 expect
9#![deny(clippy::panic)] // 不许用 panic
10
11/// 通用工具
12#[cfg(feature = "common")]
13pub mod common;
14
15/// 时间相关
16#[cfg(feature = "times")]
17pub mod times;
18
19/// 身份相关
20#[cfg(feature = "identity")]
21pub mod identity;
22
23/// 罐子相关
24#[cfg(feature = "canister")]
25pub mod canister;
26
27/// 数字相关
28#[cfg(feature = "number")]
29pub mod number;
30
31/// 代币相关
32#[cfg(feature = "token")]
33pub mod token;
34
35/// http 请求相关
36#[cfg(feature = "http")]
37pub mod http;
38
39/// 签名相关
40#[cfg(feature = "ecdsa")]
41pub mod ecdsa;
42
43/// 比特币相关
44#[cfg(feature = "bitcoin")]
45pub mod bitcoin;
46
47/// 特殊功能
48#[cfg(feature = "functions")]
49pub mod functions;
50
51/// 基本的持久化
52#[cfg(feature = "stable")]
53pub mod stable;
54
55// #[cfg(feature = "nft")]
56// pub mod nft;
57
58/// candid 解析
59#[cfg(feature = "canister-did")]
60pub mod candid;
61
62/// 所有类型
63pub mod types;