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 /koko/system/rust/cargo/env

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

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

To learn more about Rust, please go to