One, reference
rust series article directory-update ing
Getting started
2. Basic introduction
Three, tool chain
3.2 Basic use of cargo
Order | describe | Example |
---|
cargo new | Create a new project | |
cargo run | Run the project | |
cargo build | Compile the project | |
cargo vendor | Download the dependencies to the project directory | |
Fourth, create a project
4.1 Project structure
hello-rust
|- Cargo.toml
|- src
|- main.rs
document | illustrate | Example |
---|
Cargo.toml | Project configuration file, indicating version information, dependencies, etc. | |
src/main.rs | Application code | |
4.2 Add dependency
[dependencies]
ferris-says = "0.2"
Executing cargo build
will download dependencies to $HOME/.cargo/registry
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。