Skip to Main Content

Department of Computer Science

Technical Services and Support

Running Rust Compiler on CS Linux Machines

Running Rust-Lang On CS Linux Machines

By Hanz Makmur – Feb 2020

Rust Programming Language aka. Rust-Lang, a new practical and fast programming language, is available on CS Linux Machines locally. 

Before you can run  rustc, the  compiler for rust-lang, you need to set up your bash shell  by typing:

source /common/system/rust/cargo/env

You can make this permanent by adding to $HOME/.bashrc file the following lines:

export RUSTUP_HOME="/common/system/rust/rustup"
export CARGO_HOME="/common/system/rust/cargo"
export PATH="/common/system/rust/cargo/bin:$PATH"

To learn more about Rust, please go to https://www.rust-lang.org/learn