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

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:

主站蜘蛛池模板: 乐山市| 蓬溪县| 望都县| 伊宁市| 远安县| 盐津县| 文安县| 长乐市| 临湘市| 南通市| 天长市| 扎赉特旗| 巢湖市| 澄城县| 横山县| 兴安县| 岱山县| 家居| 波密县| 万源市| 桐庐县| 高清| 高平市| 大荔县| 福安市| 宝坻区| 铁岭市| 潞西市| 阿鲁科尔沁旗| 清徐县| 镇原县| 建德市| 罗山县| 东乌珠穆沁旗| 航空| 富锦市| 民权县| 朔州市| 临沂市| 革吉县| 凌海市|