官术网_书友最值得收藏!

rustc--the Rust compiler

The Rust installation directory containing rustc can be found on your machine in the following folder (unless you have chosen a different installation folder):

  • On Windows at C:\Users\username\.cargo\bin
  • On Linux or OS X in /home/username/.cargo/bin

rustc and the other binaries can be run from any command-line window. The rustc command has the following format:

rustc [options] input

The options are one-letter directives for the compiler after a dash, like -g or -W, or words prefixed by a double dash, like - -test or - -version. All options with some explanation are shown when invoking rustc -h. In the next section, we verify our installation by compiling and running our first Rust program.

To view a local copy of the Rust documentation as a website, type rustup doc into a terminal.

主站蜘蛛池模板: 淮南市| 婺源县| 陆丰市| 乌拉特后旗| 汝城县| 和静县| 麦盖提县| 谢通门县| 普宁市| 犍为县| 肥东县| 宁河县| 甘泉县| 沾化县| 镇赉县| 观塘区| 郁南县| 关岭| 江门市| 龙游县| 白水县| 仙游县| 称多县| 历史| 扬州市| 镇康县| 淮北市| 崇左市| 同德县| 三江| 衡东县| 西畴县| 扎兰屯市| 定远县| 舒兰市| 东丽区| 乐东| 岫岩| 阜宁县| 滦平县| 任丘市|