mirror of
https://github.com/google/comprehensive-rust.git
synced 2024-12-04 03:25:08 +02:00
Merge pull request #138 from brandonpollack23/cargo_page
Added some more detail on rustup.
This commit is contained in:
commit
637b785714
19
src/cargo.md
19
src/cargo.md
@ -5,6 +5,18 @@ used in the Rust ecosystem to build and run Rust applications. Here we want to
|
||||
give a brief overview of what Cargo is and how it fits into the wider ecosystem
|
||||
and how it fits into this training.
|
||||
|
||||
## Installation
|
||||
|
||||
### Rustup (Recommended)
|
||||
|
||||
You can follow the instructions to install cargo and rust compiler, among other standard ecosystem tools with the [rustup][3] tool, which is maintained by the Rust Foundation.
|
||||
|
||||
Along with cargo and rustc, Rustup will install itself as a command line utility that you can use to install/switch toolchains, setup cross compilation, etc.
|
||||
|
||||
### Package Managers
|
||||
|
||||
#### Debian
|
||||
|
||||
On Debian/Ubuntu, you can install Cargo and the Rust source with
|
||||
|
||||
```shell
|
||||
@ -14,9 +26,10 @@ $ sudo apt install cargo rust-src
|
||||
This will allow [rust-analyzer][1] to jump to the definitions. We suggest using
|
||||
[VS Code][2] to edit the code (but any LSP compatible editor works).
|
||||
|
||||
As a sidenote: if you have the access/capability to do so, it's recommended to
|
||||
install Rust's tooling via [rustup](https://rustup.rs/) since it's better integrated with the
|
||||
rest of the ecosystem.
|
||||
Some folks also like to use the [Jetbrains][4] family of IDEs, which do their own analysis but have their own tradeoffs. If you prefer them, you can install the [Rust Plugin][5]. Please take note that as of January 2023 debugging only works on the CLion version of the Jetbrains IDEA suite.
|
||||
|
||||
[1]: https://rust-analyzer.github.io/
|
||||
[2]: https://code.visualstudio.com/
|
||||
[3]: https://rustup.rs/
|
||||
[4]: https://www.jetbrains.com/clion/
|
||||
[5]: https://www.jetbrains.com/rust/
|
||||
|
Loading…
Reference in New Issue
Block a user