HPC with Rust

Last updated July 06, 2023

Rust is an open-source, multi-paradigm, general-purpose programming language designed for performance and safety.

0.0.1 Using Rust on CARC systems

Begin by logging in. Instructions for this are in the Getting Started with Discovery or Getting Started with Endeavour user guides.

Instead of using a software module, it is better to use the rustup tool to install Rust, rustc, and cargo in one of your CARC directories. By default, this installs in your home directory. Run the following command:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Follow the prompts. The installation takes a few minutes to complete.

The rustup tool can also be used to update Rust and related tools, as well as switch between different versions.

Once installed, you can compile and run Rust programs. Compile Rust programs with the rustc compiler on a login node and submit a job in order to run the programs. See the Running Jobs user guide for more information.

0.0.2 Additional resources

If you have questions about or need help with Rust, please submit a help ticket and we will assist you.


Web books: