mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-21 07:27:01 +02:00
21 lines
652 B
Markdown
21 lines
652 B
Markdown
|
# 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.
|