rust - 1.入门. (安装 , cargo )

访问量: 2220



1. 安装 curl -sSf | sh

This will download and install the official compiler for the Rust programming 
language, and its package manager, Cargo.

It will add the cargo, rustc, rustup and other commands to Cargo's bin 
directory, located at:


This path will then be added to your PATH environment variable by modifying the
profile file located at:


You can uninstall at any time with rustup self uninstall and these changes will
be reverted.

Current installation options:

   default host triple: x86_64-unknown-linux-gnu
     default toolchain: stable
  modify PATH variable: yes

1) Proceed with installation (default)

2.  把这句话 :  source ~/.cargo/env     添加到 ~/.bashrc中

3. 新建文件

fn main(){

4. 编译



就可以看到  hihihi  被打印出来了。

订阅/RSS Feed