Testumgebung
The Rust Playground provides an easy way to run short Rust programs, and is the basis for the examples and exercises in this course. Try running the âhello-worldâ program it starts with. It comes with a few handy features:
-
Under âToolsâ, use the
rustfmt
option to format your code in the âstandardâ way. -
Rust has two main âprofilesâ for generating code: Debug (extra runtime checks, less optimization) and Release (fewer runtime checks, lots of optimization). These are accessible under âDebugâ at the top.
-
If youâre interested, use âASMâ under ââŠâ to see the generated assembly code.
Speaker Notes
This slide should take about 2 minutes.
As students head into the break, encourage them to open up the playground and experiment a little. Encourage them to keep the tab open and try things out during the rest of the course. This is particularly helpful for advanced students who want to know more about Rustâs optimizations or generated assembly.