# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://mixdao.gitbook.io/dfinity/liu-yu-yan/rust-yu-yan.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
