What
Add 10-15 Rust programming exercises to the Code Playground, similar to the existing Python/JavaScript/Java/TypeScript exercises.
Why
Rust is one of the fastest-growing languages and very popular among the target audience (programmers). The Code Playground already supports 4 languages — Rust would be a natural addition.
How
- Look at
src/data/programmingExercises.ts for the exercise format
- Add a new
RUST_EXERCISES array following the same pattern
- Include exercises across difficulty levels:
- Beginner: Hello World, variables, functions, basic types
- Intermediate: ownership, borrowing, structs, enums, pattern matching
- Advanced: traits, generics, error handling with Result
- Each exercise needs:
id, title, description, template, solution, difficulty
- Register the new exercises in the exercise mode service
Note
The exercises are typing practice — users type the code, they don't run it. So focus on idiomatic Rust code that teaches good patterns.
What
Add 10-15 Rust programming exercises to the Code Playground, similar to the existing Python/JavaScript/Java/TypeScript exercises.
Why
Rust is one of the fastest-growing languages and very popular among the target audience (programmers). The Code Playground already supports 4 languages — Rust would be a natural addition.
How
src/data/programmingExercises.tsfor the exercise formatRUST_EXERCISESarray following the same patternid,title,description,template,solution,difficultyNote
The exercises are typing practice — users type the code, they don't run it. So focus on idiomatic Rust code that teaches good patterns.