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

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.

主站蜘蛛池模板: 洪泽县| 大关县| 进贤县| 中山市| 贡山| 无极县| 获嘉县| 昂仁县| 瓮安县| 墨玉县| 普定县| 怀远县| 庆元县| 闻喜县| 博乐市| 阿坝县| 社旗县| 灵丘县| 疏勒县| 应城市| 本溪市| 肇庆市| 洪洞县| 镇坪县| 宜丰县| 陕西省| 牡丹江市| 冕宁县| 长海县| 利川市| 金塔县| 屏东县| 宿迁市| 洪江市| 岳普湖县| 彰化市| 永吉县| 修水县| 景德镇市| 磴口县| 白山市|