書(shū)名: Learning Rust作者名: Paul Johnson Vesa Kaihlavirta本章字?jǐn)?shù): 110字更新時(shí)間: 2021-07-02 23:07:13
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:

推薦閱讀
- Modular Programming with Python
- OpenShift開(kāi)發(fā)指南(原書(shū)第2版)
- Android 7編程入門(mén)經(jīng)典:使用Android Studio 2(第4版)
- Spring+Spring MVC+MyBatis整合開(kāi)發(fā)實(shí)戰(zhàn)
- OpenCV 3計(jì)算機(jī)視覺(jué):Python語(yǔ)言實(shí)現(xiàn)(原書(shū)第2版)
- IPython Interactive Computing and Visualization Cookbook
- Docker:容器與容器云(第2版)
- Kotlin進(jìn)階實(shí)戰(zhàn)
- Java 9 with JShell
- 你好!Java
- C語(yǔ)言王者歸來(lái)
- ROS Robotics Projects
- D Cookbook
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)
- 輕松玩轉(zhuǎn)Scratch 3.0編程(第2版)