7.2. Rust environment building

发布时间 :2023-11-03 23:00:08 UTC      

Rust supports many integrated development environments (IDE) or specialized text editors for development.

The supported tools announced on the official website are as follows ( https://www.rust-lang.org/zh-CN/tools ):

Image0

This tutorial will use Visual Studio Code as our development environment (Eclipse has a version dedicated to Rust development, which is also a good choice for beginners).

Note: IntelliJ IDEA is difficult to debug after installing plug-ins, so developers who are used to using IDEA are recommended to use CLion, but CLion is not free.

7.2.1. Build Visual Studio Code development environment #

First, you need to install the latest version of the Rust compilation tool and Visual Studio Code.

Rust compilation tool: https://www.rust-lang.org/zh-CN/tools/install

Visual Studio Code: https://code.visualstudio.com/Download

Rust’s compilation tools rely on C language compilation tools, which means that at least one C language compilation environment already exists on your computer. If you are using a Linux system, you often already have GCC or clang. If you are using macOS, you need to install Xcode. If you are using the Windows operating system, you need to install Visual Studio 2013 or above (requires Cmax Candle + support) to use MSVC or install the MinGW + GCC compiler environment (Cygwin has not been tested yet).

7.2.2. Install the Rust compilation tool #

The Rust compilation tool recommends using the Rustup installation that you just downloaded from the link above. The downloaded Rustup is an executable program on Windows rustup-init.exe . (on other platforms it should be rustup-init.sh ).

Execute now rustup-init File:

Image1

The figure above shows a command line installation wizard.

If you have already installed MSVC (recommended), then the installation process will be very simple, type 1 and enter, and go straight to the secondstep.

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.