1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-04-21 07:27:01 +02:00
comprehensive-rust/src/cargo/code-samples.md

21 lines
652 B
Markdown
Raw Normal View History

2022-12-21 16:36:30 +01:00
# Code Samples in This Training
For this training, we will mostly explore the Rust language through examples
which can be executed through your browser. This makes the setup much easier and
ensures a consistent experience for everyone.
Installing Cargo is still encouraged: it will make it easier for you to do the
exercises. On the last day, we will do a larger exercise which shows you how to
work with dependencies and for that you need Cargo.
The code blocks in this course are fully interactive:
```rust,editable
fn main() {
println!("Edit me!");
}
```
You can use <kbd>Ctrl-Enter</kbd> to execute the code when focus is in the text
box.