- Rust Quick Start Guide
- Daniel Arbuckle
- 169字
- 2021-06-10 19:46:00
Starting a new project
Okay, so we've installed the compiler. Yay! But how do we use it?
The first step is to open up a command-line window, and navigate to the directory where we want to store our new project. Then we can create the skeleton of a new program with cargo new foo.
When we do this, cargo will create a new directory named foo and set up the skeletal program inside it.
The default is for cargo to create the skeleton of an executable program, but we can also tell it to set up a new library for us. All that takes is an additional command-line argument (bar is the name of the new directory that will be created, like foo): cargo new --lib bar.
When we look inside the newly created foo directory, we see a file called Cargo.toml and a sub-directory called src. There may also be a Git version control repository, which we will ignore for now.
- 大學計算機基礎(第三版)
- Software Defined Networking with OpenFlow
- OpenDaylight Cookbook
- MySQL 8 DBA基礎教程
- Mastering Unity 2D Game Development(Second Edition)
- Tableau 10 Bootcamp
- Practical Game Design with Unity and Playmaker
- Android Studio Cookbook
- 嵌入式Linux C語言程序設計基礎教程
- Python Projects for Kids
- Access數據庫應用教程(2010版)
- 透視C#核心技術:系統架構及移動端開發
- 美麗洞察力:從化妝品行業看顧客需求洞察
- JSP編程教程
- Effective Python:編寫高質量Python代碼的90個有效方法(原書第2版)