Back to articles
[Rust Guide] 1.3. Rust Cargo
How-ToTools

[Rust Guide] 1.3. Rust Cargo

via Dev.toSomeB1oody

1.3.0. Review At the end of the 1.2. Basic Understanding of Rust and Printing "Hello World" article, it was mentioned that only small, simple Rust projects are suitable for compilation using rustc , while large projects require Cargo . This article provides a detailed introduction to Cargo. 1.3.1. What is Cargo Cargo is Rust's build system and package manager. Its functions include building code, downloading dependent libraries, building these libraries... Cargo is installed automatically when installing Rust. To check if Cargo is correctly installed: enter the command cargo --version in the terminal 1.3.2. Creating Projects with Cargo Projects created in RustRover automatically configure Cargo, and you can see a file called Cargo.toml in the left project structure. For non-RustRover users, you can configure Cargo in the terminal: Copy the folder path where you want Cargo to be located, open terminal, enter command  cd desired_path Then enter command  cargo new desired_project_name  to

Continue reading on Dev.to

Opens in a new tab

Read Full Article
3 views

Related Articles