Rust 工具链
Channels: Rust 有 stable, beta, nightly 三个 channel
$ rustup toolchain install nightlyinfo: syncing channel updates for 'nightly'info: downloading toolchain manifestinfo: downloading component 'rustc'info: downloading component 'rust-std'info: downloading component 'rust-docs'info: downloading component 'cargo'info: installing component 'rustc'info: installing component 'rust-std'info: installing component 'rust-docs'info: installing component 'cargo'
nightly installed: rustc 1.9.0-nightly (02310fd31 2016-03-19)$ rustup default nightlyinfo: using existing install for 'nightly'info: default toolchain set to 'nightly'
nightly unchanged: rustc 1.9.0-nightly (02310fd31 2016-03-19)# 安装并指定添加 componentrustup toolchain install nightly --component rust-docs# 为当前 toolchain 添加 componentrustup component add rust-docs$ rustup target add arm-linux-androideabiinfo: downloading component 'rust-std' for 'arm-linux-androideabi'info: installing component 'rust-std' for 'arm-linux-androideabi'
$ cargo build --target=arm-linux-androideabi