- Rust Programming Cookbook
- Claus Matzinger
- 215字
- 2021-06-24 12:27:40
Setting up your environment
Since the programming language comes with a variety of toolchains, tools, linkers, and compiler versions, choosing the best-fitting variation is not easy. Additionally, Rust works on all major operating systems—which adds another variable.
However, installing Rust has become a trivial task when using rustup (https://rustup.rs/). On the website, a helpful script (or installer on Windows) that takes care of retrieving and installing the required components can be downloaded. The same tool lets you switch between and update (and uninstall) these components as well. This is the recommended way.
To write code, an editor is also required. Since Visual Studio Code sports some Rust parts, it is a great choice together with the Rust extension. It's an open source editor developed by Microsoft and is well received across the world and the Rust community. In this recipe, we will install the following components:
- Visual Studio Code (https://code.visualstudio.com/)
- rustup (https://rustup.rs)
- rustc (and the rest of the compiler toolchains)
- cargo
- RLS (short for Rust Language Server—this is for autocompletion)
- Rust language support for Visual Studio Code
- ReSharper Essentials
- JavaScript 從入門到項目實踐(超值版)
- What's New in TensorFlow 2.0
- 大學計算機應用基礎實踐教程
- 數據結構和算法基礎(Java語言實現)
- Linux環境編程:從應用到內核
- Unity 5 for Android Essentials
- Arduino家居安全系統構建實戰
- Procedural Content Generation for C++ Game Development
- 現代C++編程實戰:132個核心技巧示例(原書第2版)
- Principles of Strategic Data Science
- Practical GIS
- Wearable:Tech Projects with the Raspberry Pi Zero
- 新手學ASP.NET 3.5網絡開發
- Selenium Essentials