How to create a Rust Lab?
Attach to course item
button. Once that is done, click the three dots again and click on “Edit” to edit the lab.Edit
button a new page will open. On this page you need to setup instructions for lab. These instructions would be visible to the user when they’re attempting the lab. Therefore, include all the helper material, lab setup instructions here.
Cargo
project structure:
Cargo.toml
file and a src/main.rs
file. Once forked, update the repository link in your lab settings.
The repository also includes a .cdmrc
file, a critical configuration file for Fermion labs. Familiarize yourself with the .cdmrc guide to understand how it works before proceeding.
rustc
results
must match the challenges defined in the UI.cargo test
and instead run a rust script manually.add
function works correctly with input 1,2.add
function works correctly with input 2,3.