Skip to content

Commit a51d6f1

Browse files
committed
third-party/custom -> community
1 parent f6a657a commit a51d6f1

File tree

9 files changed

+27
-28
lines changed

9 files changed

+27
-28
lines changed

CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- New option `x` in the prompt to reset the file of the current exercise 🔄
1717
- Allow `dead_code` for all exercises and solutions ⚰️ (thanks to [@huss4in](https://github.com/huss4in))
1818
- Pause input while running an exercise to avoid unexpected prompt interactions ⏸️
19-
- Limit the maximum number of exercises to 999. Any third-party exercises willing to reach that limit? 🔝
19+
- Limit the maximum number of exercises to 999. Any community exercises willing to reach that limit? 🔝
2020

2121
### Changed
2222

@@ -93,7 +93,7 @@
9393

9494
#### Added
9595

96-
- `dev check`: Check that all exercises (including third-party ones) include at least one `TODO` comment.
96+
- `dev check`: Check that all exercises (including community ones) include at least one `TODO` comment.
9797
- `dev check`: Check that all exercises actually fail to run (not already solved).
9898

9999
#### Changed
@@ -168,13 +168,13 @@ This should avoid issues related to the language server or to running exercises,
168168
Clippy lints are now shown on all exercises, not only the Clippy exercises 📎
169169
Make Clippy your friend from early on 🥰
170170

171-
### Third-party exercises
171+
### Community Exercises
172172

173-
Rustlings now supports third-party exercises!
173+
Rustlings now supports community exercises!
174174

175175
Do you want to create your own set of Rustlings exercises to focus on some specific topic?
176176
Or do you want to translate the original Rustlings exercises?
177-
Then follow the link to the guide about [third-party exercises](THIRD_PARTY_EXERCISES.md)!
177+
Then follow the link to the guide about [community exercises](https://rustlings.rust-lang.org/community-exercises)!
178178

179179
## 5.6.1 (2023-09-18)
180180

src/app_state.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ impl AppState {
315315
}
316316

317317
// Official exercises: Dump the original file from the binary.
318-
// Third-party exercises: Reset the exercise file with `git stash`.
318+
// Community exercises: Reset the exercise file with `git stash`.
319319
fn reset(&self, exercise_ind: usize, path: &str) -> Result<()> {
320320
if self.official_exercises {
321321
return EMBEDDED_FILES
@@ -385,7 +385,7 @@ impl AppState {
385385
}
386386

387387
/// Official exercises: Dump the solution file from the binary and return its path.
388-
/// Third-party exercises: Check if a solution file exists and return its path in that case.
388+
/// Community exercises: Check if a solution file exists and return its path in that case.
389389
pub fn current_solution_path(&self) -> Result<Option<String>> {
390390
if cfg!(debug_assertions) {
391391
return Ok(None);

src/dev.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ mod update;
88

99
#[derive(Subcommand)]
1010
pub enum DevCommands {
11-
/// Create a new project for third-party Rustlings exercises
11+
/// Create a new project for community exercises
1212
New {
1313
/// The path to create the project in
1414
path: PathBuf,

src/dev/new.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,18 +86,18 @@ target/
8686
";
8787

8888
const INFO_FILE_BEFORE_FORMAT_VERSION: &str =
89-
"# The format version is an indicator of the compatibility of third-party exercises with the
89+
"# The format version is an indicator of the compatibility of community exercises with the
9090
# Rustlings program.
9191
# The format version is not the same as the version of the Rustlings program.
92-
# In case Rustlings makes an unavoidable breaking change to the expected format of third-party
92+
# In case Rustlings makes an unavoidable breaking change to the expected format of community
9393
# exercises, you would need to raise this version and adapt to the new format.
9494
# Otherwise, the newest version of the Rustlings program won't be able to run these exercises.
9595
format_version = ";
9696

9797
const INFO_FILE_AFTER_FORMAT_VERSION: &str = r#"
9898
9999
# Optional multi-line message to be shown to users when just starting with the exercises.
100-
welcome_message = """Welcome to these third-party Rustlings exercises."""
100+
welcome_message = """Welcome to these community Rustlings exercises."""
101101
102102
# Optional multi-line message to be shown to users after finishing all exercises.
103103
final_message = """We hope that you found the exercises helpful :D"""
@@ -141,7 +141,7 @@ publish = false
141141

142142
const README: &str = "# Rustlings 🦀
143143
144-
Welcome to these third-party Rustlings exercises 😃
144+
Welcome to these community Rustlings exercises 😃
145145
146146
First, [install Rustlings using the official instructions](https://github.com/rust-lang/rustlings) ✅
147147

src/info_file.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ impl RunnableExercise for ExerciseInfo {
7979
/// The deserialized `info.toml` file.
8080
#[derive(Deserialize)]
8181
pub struct InfoFile {
82-
/// For possible breaking changes in the future for third-party exercises.
82+
/// For possible breaking changes in the future for community exercises.
8383
pub format_version: u8,
8484
/// Shown to users when starting with the exercises.
8585
pub welcome_message: Option<String>,
@@ -91,7 +91,7 @@ pub struct InfoFile {
9191

9292
impl InfoFile {
9393
/// Official exercises: Parse the embedded `info.toml` file.
94-
/// Third-party exercises: Parse the `info.toml` file in the current directory.
94+
/// Community exercises: Parse the `info.toml` file in the current directory.
9595
pub fn parse() -> Result<Self> {
9696
// Read a local `info.toml` if it exists.
9797
let slf = match fs::read_to_string("info.toml") {

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ enum Subcommands {
5858
/// The name of the exercise
5959
name: Option<String>,
6060
},
61-
/// Commands for developing (third-party) Rustlings exercises
61+
/// Commands for developing (community) Rustlings exercises
6262
#[command(subcommand)]
6363
Dev(DevCommands),
6464
}

website/config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ url = "/setup"
2424
name = "Usage"
2525
url = "/usage"
2626
[[extra.menu_items]]
27-
name = "Custom Exercises"
28-
url = "/custom-exercises"
27+
name = "Community Exercises"
28+
url = "/community-exercises"
2929
[[extra.menu_items]]
3030
name = "Q&A"
3131
url = "https://github.com/rust-lang/rustlings/discussions/categories/q-a?discussions_q="

website/content/custom-exercises/index.md renamed to website/content/community-exercises/index.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
+++
2-
title = "Custom Exercises"
2+
title = "Community Exercises"
33
+++
44

5-
Custom exercises are a set of exercises maintained by the community.
6-
You can use the same `rustlings` program that you installed with `cargo install rustlings` to run them:
5+
Do you want to create your own set of Rustlings exercises to focus on some specific topic?
6+
Or do you want to translate the original Rustlings exercises?
7+
8+
## List of Community Exercises
79

810
- 🇯🇵 [Japanese Rustlings](https://github.com/sotanengel/rustlings-jp):A Japanese translation of the Rustlings exercises.
911
- 🇨🇳 [Simplified Chinese Rustlings](https://github.com/SandmeyerX/rustlings-zh-cn): A simplified Chinese translation of the Rustlings exercises.
1012

11-
Do you want to create your own set of Rustlings exercises to focus on some specific topic?
12-
Or do you want to translate the original Rustlings exercises?
13-
14-
<!-- toc -->
13+
You can use the same `rustlings` program that you installed with `cargo install rustlings` to run them
1514

16-
The support of Rustlings for custom exercises allows you to create your own set of Rustlings exercises to focus on some specific topic.
17-
You could also offer a translation of the original Rustlings exercises as custom exercises.
15+
The support of Rustlings for community exercises allows you to create your own set of Rustlings exercises to focus on some specific topic.
16+
You could also offer a translation of the original Rustlings exercises as community exercises.
1817

1918
## Getting started
2019

21-
To create custom exercises, install Rustlings and run `rustlings dev new PROJECT_NAME`.
20+
To create community exercises, install Rustlings and run `rustlings dev new PROJECT_NAME`.
2221
This command will, similar to `cargo new PROJECT_NAME`, create a template directory called `PROJECT_NAME` with all what you need to get started.
2322

2423
Read the comments in the generated `info.toml` file to understand its format.

website/content/usage/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,4 @@ If you need any help while doing the exercises and the builtin hints aren't help
5252
Once you've completed Rustlings, put your new knowledge to good use!
5353
Continue practicing your Rust skills by building your own projects, contributing to Rustlings, or finding other open-source projects to contribute to.
5454

55-
> If you want to create your own custom Rustlings exercises, visit the [**custom exercises**](@/custom-exercises/index.md) page 🏗️
55+
> If you want to create your own Rustlings exercises, visit the [**community exercises**](@/community-exercises/index.md) page 🏗️

0 commit comments

Comments
 (0)