官术网_书友最值得收藏!

Structure of a Rust project

A Rust project (irrespective of the platform you are developing on) will have the following structure:

The preceding screenshot shows the structure of the simplest Rust project, and as such can be replicated using the following commands:

The echo $null >> filename command creates an empty file without the need to start Notepad; save the file and exit.

The Cargo.toml file is the Rust equivalent of a Makefile. When the .toml file is created by hand, it should be edited to contain something like this:

The structure of a Rust project can expand to include documentation as well as the build structure, as follows:

主站蜘蛛池模板: 鄄城县| 额尔古纳市| 馆陶县| 治多县| 碌曲县| 靖江市| 商水县| 广丰县| 安陆市| 永济市| 永清县| 英吉沙县| 托克逊县| 石阡县| 闽清县| 尉犁县| 色达县| 永福县| 盘锦市| 广饶县| 德令哈市| 定陶县| 樟树市| 吴堡县| 临泽县| 秀山| 家居| 金秀| 彰化县| 台中县| 拜城县| 水城县| 枣庄市| 上蔡县| 莲花县| 鄂伦春自治旗| 光山县| 湟中县| 新和县| 锦州市| 宁晋县|