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

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.

主站蜘蛛池模板: 康马县| 江津市| 洮南市| 岑溪市| 黎平县| 柳江县| 义乌市| 逊克县| 大港区| 岳池县| 苍溪县| 北流市| 时尚| 夏邑县| 双城市| 玉溪市| 土默特右旗| 马边| 松阳县| 宣威市| 塘沽区| 周至县| 涿鹿县| 平塘县| 华阴市| 扎囊县| 阜城县| 微山县| 富顺县| 横山县| 宁南县| 贵定县| 钦州市| 娄底市| 望谟县| 伊宁市| 新干县| 松滋市| 瑞金市| 江都市| 沁源县|