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

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.

主站蜘蛛池模板: 潮安县| 门头沟区| 福贡县| 扎囊县| 夏河县| 安国市| 屏边| 万年县| 伊川县| 邢台县| 都江堰市| 黄骅市| 蓬溪县| 承德县| 茌平县| 正宁县| 融水| 津市市| 类乌齐县| 鄂托克旗| 土默特左旗| 恩施市| 辽宁省| 乌审旗| 青州市| 平江县| 舞钢市| 宜君县| 华容县| 玉山县| 崇礼县| 天津市| 临沧市| 曲阜市| 汪清县| 且末县| 马山县| 读书| 瑞丽市| 仁化县| 襄汾县|