> For the complete documentation index, see [llms.txt](https://mixdao.gitbook.io/dfinity/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mixdao.gitbook.io/dfinity/liu-yu-yan/rust-yu-yan.md).

# Rust语言

**如何使用Rust语言工作的介绍**

Rust语言是一种强大，安全可靠的现代变成语言，拥有活跃的开发者社区。由于Rust可以编译为WebAssembly，因此它提供了丰富的开发环境来编写可在互联网计算机上运行的应用程序。为了帮助铺平可以在Internet计算机上部署的用Rust编写应用程序的方式，DFINITY提供了一些工具来简化该过程。

这些工具就是用于支持Rust的DFINITY Canister开发套件（CDK），包括以下主要库：

| Package包         | Description描述                                                                                                                                                 |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ic-types         | ic-types库 定义了用于与互联网计算机副本进行通信的类型，以及在构建要作为互联网计算机上的Canister的应用程序时使用的类型。                                                                                          |
| ic-agent         | ic-agent 库允许与Internet计算机副本直接通信。                                                                                                                               |
| ic-utils         | <p>The ic-utils library provides utilities for managing calls and applications deployed as canisters.</p><p>ic-utils库提供程序，用于管理Canister应用程序和Canister之间的调用。</p> |
| ic-cdk           | ic-cdk提供了使Rust程序能够与互联网计算机的主系统API交互的核心方法。 该库充当Rust CDK的Runtime核心。                                                                                              |
| ic-cdk-macros    | ic-cdk-macros库定义了有助于构建操作端点和API的过程宏。 该库包含用于更新（update），查询（query），导入（import ）和其他重要操作的关键宏。                                                                        |
| ic-cdk-optimizer | ic-cdk-optimizer是用于减少WebAssembly模块大小的帮助程序库。                                                                                                                   |

![](https://uploader.shimo.im/f/FX9xtDHEueSiKyi8.png!thumbnail)
