From f17b8f098f7ca33f4ca814a7f80572abba7a4c28 Mon Sep 17 00:00:00 2001 From: Konstantin Chaika Date: Tue, 14 Jan 2025 18:45:37 +0400 Subject: [PATCH] Added run icon to hello world task and specified resolver version for the whole course --- Cargo.toml | 2 ++ .../Hello World/images/run.svg | 4 +++ .../Hello World/images/run_dark.svg | 4 +++ .../Hello World/task-info.yaml | 26 +++++++++++-------- .../Getting started/Hello World/task.md | 10 +++++-- 5 files changed, 33 insertions(+), 13 deletions(-) create mode 100644 Introduction/Getting started/Hello World/images/run.svg create mode 100644 Introduction/Getting started/Hello World/images/run_dark.svg diff --git a/Cargo.toml b/Cargo.toml index 30b4365d..3bae2ae4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -44,3 +44,5 @@ members = [ exclude = [ "**/*.yaml" ] + +resolver = "2" diff --git a/Introduction/Getting started/Hello World/images/run.svg b/Introduction/Getting started/Hello World/images/run.svg new file mode 100644 index 00000000..dd11f50d --- /dev/null +++ b/Introduction/Getting started/Hello World/images/run.svg @@ -0,0 +1,4 @@ + + + + diff --git a/Introduction/Getting started/Hello World/images/run_dark.svg b/Introduction/Getting started/Hello World/images/run_dark.svg new file mode 100644 index 00000000..0c199c7d --- /dev/null +++ b/Introduction/Getting started/Hello World/images/run_dark.svg @@ -0,0 +1,4 @@ + + + + diff --git a/Introduction/Getting started/Hello World/task-info.yaml b/Introduction/Getting started/Hello World/task-info.yaml index 07481814..4c2f17eb 100644 --- a/Introduction/Getting started/Hello World/task-info.yaml +++ b/Introduction/Getting started/Hello World/task-info.yaml @@ -1,14 +1,18 @@ type: edu custom_name: "Task: Hello World" files: -- name: src/main.rs - visible: true - placeholders: - - offset: 16 - length: 26 - placeholder_text: // put your code here to launch it -- name: Cargo.toml - visible: false -- name: tests/tests.rs - visible: false -feedback_link: https://docs.google.com/forms/d/e/1FAIpQLSdfJQgjsbDA4pPGpklj3vJnKNspd9wmEHzAgh6EkoJy2IiRuw/viewform?usp=pp_url&entry.2103429047=Introduction+/+Getting+started+/+Hello+World \ No newline at end of file + - name: src/main.rs + visible: true + placeholders: + - offset: 16 + length: 26 + placeholder_text: // put your code here to launch it + - name: Cargo.toml + visible: false + - name: tests/tests.rs + visible: false + - name: images/run_dark.svg + visible: false + - name: images/run.svg + visible: false +feedback_link: https://docs.google.com/forms/d/e/1FAIpQLSdfJQgjsbDA4pPGpklj3vJnKNspd9wmEHzAgh6EkoJy2IiRuw/viewform?usp=pp_url&entry.2103429047=Introduction+/+Getting+started+/+Hello+World diff --git a/Introduction/Getting started/Hello World/task.md b/Introduction/Getting started/Hello World/task.md index 79be44e6..1c6507f8 100644 --- a/Introduction/Getting started/Hello World/task.md +++ b/Introduction/Getting started/Hello World/task.md @@ -17,7 +17,7 @@ Now let's replace the line inside the main function with the code: ``` ##### Example: A program that prints Hello, world! -To run this code click on **Run** icon at the left-upper corner of the editor. Click **Check** button in the **Task Description** window to run the tests checking the correctness of the solution provided. +To run this code click on **Run** icon (![](images/run.svg)) at the left-upper corner of the editor. Click **Check** button in the **Task Description** window to run the tests checking the correctness of the solution provided. If `Hello, world!` did print, congratulations! You’ve officially written a Rust program. That makes you a Rust programmer—welcome! @@ -52,4 +52,10 @@ Third, you see the `"Hello, world!"` string. We pass this string as an argument Fourth, we end the line with a semicolon (`;`), which indicates that this expression is over and the next one is ready to begin. Most lines of Rust code end with a semicolon. -_You can refer to the following chapter in the Rust Programming Language book: [Hello, World!](https://doc.rust-lang.org/stable/book/ch01-02-hello-world.html)_ \ No newline at end of file +_You can refer to the following chapter in the Rust Programming Language book: [Hello, World!](https://doc.rust-lang.org/stable/book/ch01-02-hello-world.html)_ + +