CS3984 Computer Systems in Rust



Documentation

For most projects, you will be using the nix crate. The documentation for the specific version of the crate you will be using can be found at https://rust.cs.vt.edu/docs/nix/.

Installation

  1. Install Rust: Follow the instructions on https://rustup.rs/.

    If you want to develop on rlogin, make sure to follow the instructions for Unix systems. You may find that there is already an existing Rust install, but you should install a local version. Reply yes to the prompt to ignore the existing installation of Rust.

    To confirm that you have successfully installed Rust locally on rlogin, run the following:

    $ which {rustup,cargo,rustc}
    # The binaries should be in your home directory
    ~/.cargo/bin/rustup
    ~/.cargo/bin/cargo
    ~/.cargo/bin/rustc
    
    
    
  2. Setup SSH keys for rlogin.

  3. Set up VSCode for Rust development.

OR

  1. Set up Neovim for Rust develpoment.

    • Connect to rlogin through SSH in the terminal
    • Install rust-analyzer through rustup component add rust-analyzer
    • Navigate to ~/.config
    • Clone the provided starter configuration:
    $ git clone https://git.cs.vt.edu/cs3984-systems-rust/nvim.git
    
    
    

    It is recommended that you are at least familiar with the basics of Vim/Neovim before committing to this option.

More Info

  • rustup - Installer for different versions of Rust (stable, beta, nightly)
  • cargo - Build system and package manager
  • rustc - Rust compiler

Rust Programming Language