Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1856 commits
Select commit Hold shift + click to select a range
afc320b
Fix error about too many open files during the final check
mo8it Aug 28, 2024
789492d
The number of exercises can't be zero, but still
mo8it Aug 28, 2024
fc1f9f0
Optimize reading and writing the state file
mo8it Aug 28, 2024
fd2bf9f
Simplify next_pending_exercise_ind
mo8it Aug 28, 2024
10eb1a3
Fix header padding
mo8it Aug 29, 2024
bfa00ff
Update deps
mo8it Aug 29, 2024
dbbeb7d
Fix displaying the list message in narrow mode
mo8it Aug 29, 2024
ab2eb34
Update changelog
mo8it Aug 29, 2024
c8d1d9c
chore: Release
mo8it Aug 29, 2024
7d4100e
Fix example in 'primitive_types3' hint
wugalde19 Aug 31, 2024
ea52c99
Merge pull request #2092 from wugalde19/fix-hint-example-for-primitiv…
mo8it Aug 31, 2024
ac62a37
Fix typo
mo8it Sep 1, 2024
75a38fa
Add search to the help footer
mo8it Sep 1, 2024
f82e47f
style: reduce pre-formatted message line lengths to 80 columns
jsejcksn Sep 1, 2024
86fc573
Remove the footer separators
mo8it Sep 1, 2024
a8b13f5
Remove "exercises" from the end of the progress bar
mo8it Sep 1, 2024
c4fd295
added a way to search through list, ref #2093
frroossst Sep 2, 2024
e1e316b
Merge branch 'main' of https://github.com/frroossst/rustlings
frroossst Sep 2, 2024
e966235
Merge branch 'rust-lang:main' into main
frroossst Sep 2, 2024
388f8da
removed debug statements
frroossst Sep 2, 2024
92a1214
passes clippy lints
frroossst Sep 2, 2024
44ab7f9
Merge branch 'main' of https://github.com/frroossst/rustlings
frroossst Sep 2, 2024
f696d98
Merge pull request #2097 from jsejcksn/ux
mo8it Sep 2, 2024
547a9d9
escape/enter no longer exits the list, exits only the search
frroossst Sep 2, 2024
abf1228
search now filters the list first
frroossst Sep 2, 2024
3125561
Merge branch 'rust-lang:main' into main
frroossst Sep 2, 2024
7149426
fixed clippy lints
frroossst Sep 2, 2024
1e7fc46
Merge branch 'main' of https://github.com/frroossst/rustlings
frroossst Sep 2, 2024
948e16e
moved continue to end of if-block
frroossst Sep 3, 2024
fea917c
removed unnecessary update_rows() call and minor refactoring
frroossst Sep 3, 2024
47148e7
replaced enumerate() with position(); converted select_if_matches_sea…
frroossst Sep 3, 2024
e9879ea
merge of origin/main
frroossst Sep 3, 2024
f463cf8
passes clippy lints and removed extra code from the merge
frroossst Sep 3, 2024
20616ff
Merge pull request #2098 from frroossst/main
mo8it Sep 3, 2024
da8b3d1
Final touches to searching
mo8it Sep 3, 2024
03baa47
Simplify handling `p` in list
mo8it Sep 3, 2024
e5ed115
Match filter once
mo8it Sep 3, 2024
247bd19
Canonicalize exercise paths only once
mo8it Sep 4, 2024
5eb3dee
Create solution even if the solution's directory is missing
mo8it Sep 4, 2024
1787736
Update deps
mo8it Sep 4, 2024
2d0860f
Hide input and disable its line buffering
mo8it Sep 5, 2024
aa3eda7
Simplify handling terminal events for unbuffered stdin
mo8it Sep 5, 2024
51b8d2a
Remove unused import
mo8it Sep 5, 2024
dcad002
Only render when needed
mo8it Sep 5, 2024
bcc2a13
Add error message when unable to get terminal size
mo8it Sep 5, 2024
9faa5d3
Avoid asking for terminal size on each rendering
mo8it Sep 5, 2024
2d26358
Use the thread builder and handle the spawn error
mo8it Sep 6, 2024
938500f
Fix dev check in official repo
mo8it Sep 6, 2024
2b7caf6
Too polite :P
mo8it Sep 6, 2024
9a25309
Remove redundant enum definition task
senekor Sep 11, 2024
1f624d4
Add rust-analyzer.toml file
alibektas Sep 12, 2024
88e10a9
hardcode ratoml in init.rs
alibektas Sep 12, 2024
45abd7d
Merge pull request #2107 from alibektas/ratoml_for_rustlings
mo8it Sep 12, 2024
83d1275
Add missing # in comment
mo8it Sep 12, 2024
234a61a
Update deps
mo8it Sep 12, 2024
664228e
Improve quit message
mo8it Sep 12, 2024
3947c4d
Pause input while running an exercise
mo8it Sep 12, 2024
0513660
Allow dead code for all exercises and solutions
mo8it Sep 13, 2024
4ffce1c
Move lint to Rust lints
mo8it Sep 13, 2024
5aaa892
<s>earch isn't a typo
mo8it Sep 13, 2024
9459eef
Use Clippy with Rust-Analyzer
mo8it Sep 13, 2024
47f8a0c
Add rust-analyzer.toml on `dev new`
mo8it Sep 13, 2024
8b476e6
Update info.toml
bri-rose Sep 13, 2024
b540c6d
Make if2 less confusing
senekor Sep 14, 2024
1bae2dc
Merge pull request #2109 from bri-rose/main
mo8it Sep 14, 2024
2894f3c
Merge pull request #2110 from senekor/remo/skkynvtqxkoz
mo8it Sep 16, 2024
64b2f18
Merge pull request #2103 from senekor/senk/kvuzvzqqkskk
mo8it Sep 16, 2024
e56ae6d
Update deps
mo8it Sep 17, 2024
89c40ba
Optimize the file watcher
mo8it Sep 17, 2024
4e4b657
Only handle file changes for the current exercise, no jumping back
mo8it Sep 17, 2024
2653c3c
Do not use `.as_bytes().len()` on strings
samueltardieu Sep 22, 2024
a55e848
Merge pull request #2114 from samueltardieu/push-ptorzrrnmxyp
mo8it Sep 22, 2024
e3ec0ab
add Third-Party List about rustlings-jp on README
sotanengel Sep 24, 2024
554301b
Clear terminal before final check in watch mode
mo8it Sep 24, 2024
d4fa61e
Debounce file change events
mo8it Sep 26, 2024
0d258b9
Update deps
mo8it Sep 26, 2024
0e9eb9e
Replace three dots with dot in hint
mo8it Sep 26, 2024
0c79f2e
Reset in prompt with confirmation
mo8it Sep 26, 2024
f0a2cde
Merge branch 'rust-lang:main' into add/link-to-THIRD_PARTY-repository…
sotanengel Sep 29, 2024
26fd97a
Update all exercises during the final check
Nahor Oct 2, 2024
c52867e
Add command to check all the exercises
Nahor Oct 2, 2024
5c17abd
Use a channel to update the check_all progress
Nahor Oct 2, 2024
e2f7734
Limit the amount of parallelism in check_all
Nahor Oct 2, 2024
aa83fd6
Show a progress bar when running check_all
Nahor Oct 2, 2024
d3f819f
Add command line command to check all exercises
Nahor Oct 4, 2024
bf7d171
Update from_str.rs
Oct 5, 2024
e852e60
Merge pull request #2124 from Polycarbohydrate/main
mo8it Oct 5, 2024
f516da4
Avoid single char variables
mo8it Oct 9, 2024
ac6e1b7
Merge pull request #2121 from sotanengel/add/link-to-THIRD_PARTY-repo…
mo8it Oct 9, 2024
84a42a2
Update third-party exercises section
mo8it Oct 9, 2024
685e069
First PR review changes
mo8it Oct 10, 2024
326169a
Improve check-all command
mo8it Oct 13, 2024
396ee4d
Show progress with exercise numbers
mo8it Oct 13, 2024
8cac215
Small improvements to showing progress
mo8it Oct 13, 2024
9705c16
Remove the tracking of done and pending
mo8it Oct 13, 2024
fc5fc09
Remove outdated comments
mo8it Oct 13, 2024
ea73af9
Separate initialization with a struct
mo8it Oct 13, 2024
bdc6dad
Update names
mo8it Oct 13, 2024
932bc25
Remove unneeded line
mo8it Oct 13, 2024
baeeff3
Merge pull request #2122 from Nahor/check_all
mo8it Oct 13, 2024
a675cb5
Replace ahash with foldhash
mo8it Oct 14, 2024
990a722
Limit the maximum number of exercises to 999
mo8it Oct 14, 2024
f33ba13
Fix typos
Nahor Oct 14, 2024
0432e07
Merge pull request #2130 from Nahor/typo
mo8it Oct 14, 2024
f146553
hashmap3: Use `or_default`
mo8it Oct 17, 2024
9949670
Apply new Clippy lints
mo8it Oct 17, 2024
0e090ae
Add required type annotation
mo8it Oct 17, 2024
e90f5f0
Mention the Q&A category
mo8it Oct 17, 2024
7e2f56f
Use the default hasher
mo8it Oct 17, 2024
930a0ea
list: Highlight search match in exercise names
mo8it Oct 17, 2024
6bec6f9
threads1: Fix typos in description
cenviity Oct 22, 2024
ea85c1b
Merge pull request #2142 from cenviity/push-qoxkvmtkyvmv
mo8it Oct 22, 2024
e8c2a79
Deduplicate code for printing keys
mo8it Oct 26, 2024
4498586
Update deps
mo8it Oct 26, 2024
2a725fb
Upgrade notify
mo8it Oct 29, 2024
46ad25f
Fix contrast in terminals with a light theme
mo8it Nov 11, 2024
9bc7bbe
Update deps
mo8it Nov 11, 2024
f49164e
Fix typo
mo8it Nov 11, 2024
fd33c29
Test with MSRV before release
mo8it Nov 11, 2024
eff2ce8
Ignore input while checking all exercises in watch mode
mo8it Nov 11, 2024
243cf5f
Update CHANGELOG
mo8it Nov 11, 2024
410eb69
Remove "chore: " from the commit message of releases
mo8it Nov 11, 2024
e6cb104
chore: Release
mo8it Nov 11, 2024
38016cb
clippy3: Make the intent more clear
mo8it Nov 13, 2024
d5cae8f
Add alternative solution using From trait
mnshdw Nov 13, 2024
fc0cd8f
Switch comment style to //
Nov 14, 2024
dd0634c
Merge pull request #2158 from mnshdw/mnshdw/feedback-errors6
mo8it Nov 14, 2024
d07de87
Update deps
mo8it Dec 10, 2024
6e60f44
Fix argument comment in test of if2.rs
JoelMarcey Dec 13, 2024
26cf498
Merge pull request #2173 from JoelMarcey/if2-comment-fix
mo8it Dec 13, 2024
ed1ee38
Link to simplified Chinese translation
mo8it Dec 28, 2024
53ec59e
Rename translations
mo8it Dec 28, 2024
bde6f74
Co-ordinates -> Coordinates
mo8it Dec 28, 2024
0b55809
Fix building from source on Windows
mo8it Jan 1, 2025
1aec7c1
Fix Windows CI
mo8it Jan 1, 2025
d12735a
Update deps
mo8it Jan 16, 2025
fbfd4f2
Disable following symlinks in the watcher
mo8it Jan 16, 2025
298be67
Update deps
mo8it Feb 18, 2025
d9872f2
Upgrade to edition 2024
mo8it Feb 18, 2025
a56ccb6
Fix new Clippy lint
mo8it Feb 18, 2025
65dc019
Fix new Clippy error in solution
mo8it Feb 18, 2025
06af3ff
Bump MSRV in release hook
mo8it Feb 18, 2025
1eb6c1e
Update the edition of the solution format checker
mo8it Feb 21, 2025
374c387
Apply 2024 edition formatting to solutions
mo8it Feb 21, 2025
46c6fb2
Update deps
mo8it Feb 25, 2025
425c982
Use consistent apostrophes in markdown files
peterneave Feb 28, 2025
ae444eb
Merge pull request #2213 from peterneave/main
mo8it Mar 2, 2025
fcd77a8
test trim idempotence
Rudxain Mar 7, 2025
7019f4d
Update pipeline
mo8it Mar 14, 2025
8db8594
Update deps
mo8it Mar 14, 2025
7c0d269
Update README
mo8it Mar 14, 2025
d2abc35
Remove TODO from 2 solutions
ubitux Mar 17, 2025
3cc7e03
Fix typo - errors5.rs
cassian-goode Mar 25, 2025
9978c17
Update README.md
Hunter-Plus Mar 31, 2025
44699e9
Merge pull request #2227 from Hunter-Plus/patch-1
mo8it Apr 3, 2025
78194b4
Merge pull request #2224 from cassian-goode/patch-1
mo8it Apr 3, 2025
ecaecc2
Update deps
mo8it Apr 3, 2025
63d8986
Update links
mo8it Apr 3, 2025
8b4562e
Merge pull request #2219 from ubitux/no-todo
mo8it Apr 3, 2025
bd3bdd6
Fix typo in traits hint
ethdew19 Apr 9, 2025
7b2d42b
Change `icecream` to `ice cream`
rnazali Apr 10, 2025
0b91db2
Merge pull request #2236 from rahmatnazali/ice_cream
mo8it Apr 29, 2025
fa91814
Merge pull request #2232 from ethdew19/main
mo8it Apr 29, 2025
29dc8ea
Update deps
mo8it Apr 29, 2025
9bcd419
Fix formatting
mo8it Apr 29, 2025
c5f49cf
Remove needless_option_as_deref exception
mo8it May 12, 2025
a063bcf
Update deps
mo8it May 12, 2025
48bab77
Apply Clippy lints
mo8it May 12, 2025
e76ca5e
Use a separate target dir for rust analyzer
mo8it May 12, 2025
a99433c
Merge pull request #2215 from Rudxain/strim
mo8it May 13, 2025
9a35868
Sync solution
mo8it May 13, 2025
5ee7dfb
chore: build site with proper path prefix
manyinsects May 16, 2025
8dff0df
Use std pipe
mo8it May 16, 2025
e73fff3
Add dev alias
mo8it May 16, 2025
5927a78
Remove Oranda
mo8it May 16, 2025
08548ab
Remove .editorconfig
mo8it May 16, 2025
a28000a
Remove markdown lint
mo8it May 16, 2025
74ab992
Start with Zola
mo8it May 16, 2025
7ec6986
Add templates
mo8it May 16, 2025
fda18e8
Add Ferris SVGs
mo8it May 17, 2025
61c17cb
Change syntax highlighting theme
mo8it May 17, 2025
7e26418
Remove the third-party exercises file
mo8it May 17, 2025
b9d1e63
Reduce the README to the website link
mo8it May 17, 2025
6d5369d
Add more menu and footer items
mo8it May 17, 2025
2673177
Update header and footer
mo8it May 17, 2025
3d8bef4
Remove landscape mode recommendation
mo8it May 17, 2025
b30973a
Compress the intro
mo8it May 17, 2025
40fe3aa
remove oranda path_prefix
manyinsects May 17, 2025
f387f4c
Add setup and usage pages
mo8it May 17, 2025
69fe962
Update base URL
mo8it May 17, 2025
23b9aa3
Move Q/A menu item
mo8it May 17, 2025
8339007
Update setup and usage
mo8it May 17, 2025
984e9fe
Merge branch 'main'
mo8it May 17, 2025
b4a6b87
Less padding
mo8it May 17, 2025
2f70099
Remove macros
mo8it May 17, 2025
8fa598a
Add details shortcode
mo8it May 17, 2025
5fc787f
Style details body
mo8it May 17, 2025
dc46888
Highlight platform
mo8it May 17, 2025
8c24763
Q/A -> Q&A
mo8it May 17, 2025
f6a657a
Finish the usage page
mo8it May 17, 2025
a51d6f1
third-party/custom -> community
mo8it May 17, 2025
54a74fd
Use internal links for validation
mo8it May 17, 2025
69a9e9c
Less top margin for blockquotes
mo8it May 17, 2025
512ded8
Done community exercises page
mo8it May 17, 2025
596e7f3
Add website CI
mo8it May 17, 2025
47e490a
Run rustywind
mo8it May 17, 2025
edc8528
Improve CI
mo8it May 19, 2025
e36dd7a
Update MSRV in the release hook
mo8it May 19, 2025
04520ae
Use the website link as header
mo8it May 19, 2025
f80c2ed
Remove fnm
mo8it May 23, 2025
adf3ddd
Remove rustywind from dev deps
mo8it May 23, 2025
bf74a3d
Update the README with more context before the website link
mo8it May 23, 2025
2267f99
Merge pull request #2247 from rust-lang/website
mo8it May 23, 2025
520dfdc
Add workflow_dispatch to website workflow
mo8it May 23, 2025
734fc48
Make path relative
mo8it May 23, 2025
46814d3
Fix path in action
mo8it May 23, 2025
cb60c88
Update deps
mo8it Jun 3, 2025
278edc0
Clarify how to find return type of error4
zeonzip Jun 13, 2025
57b3727
Don't ignore `.rustlings-state.txt` in `.gitignore` of `rustlings dev…
mo8it Jun 27, 2025
e8da686
Don't run rustfmt during `dev check` if there are no solutions
mo8it Jun 27, 2025
7af38e6
Print newline after progress on failure
mo8it Jun 27, 2025
9fecdba
No need to flush after printing newlines
mo8it Jun 28, 2025
1a633e2
Split lines after newline
mo8it Jul 4, 2025
f248619
Check for Clippy on init
mo8it Jul 4, 2025
3a2fe2c
Fix incorrect book chapter number
aCactusOrSomething Jul 18, 2025
4f9f090
Add positive tests
deafloo Jul 21, 2025
a712e48
Update deps
mo8it Aug 18, 2025
2d1d531
Fix file links in VS Code
mo8it Aug 21, 2025
208a593
Ready to release
mo8it Aug 21, 2025
c688868
Merge pull request #2265 from deafloo/main
mo8it Aug 21, 2025
436c95f
Merge pull request #2262 from aCactusOrSomething/main
mo8it Aug 21, 2025
6765a0b
Merge pull request #2255 from zeonzip/clarify_errors_4_return
mo8it Aug 21, 2025
b6b94e3
Sync solution
mo8it Aug 21, 2025
628ef55
Fix Clippy chapter
mo8it Aug 21, 2025
295ad2e
Raise MSRV
mo8it Aug 21, 2025
6ec2e19
Apply Clippy lints
mo8it Aug 21, 2025
2af9e89
chore: Release
mo8it Aug 21, 2025
95a597e
Fix workspace detection with windows line endings
senekor Sep 23, 2025
1955313
Merge pull request #2291 from senekor/senekor/llttzkqnommp
mo8it Sep 23, 2025
d8f4b06
Remove use of `map` in early vecs2 exercise
senekor Sep 24, 2025
f80fbca
Merge pull request #2294 from senekor/senekor/qxykzqyxnnwy
mo8it Sep 25, 2025
8753dd6
Fixed typo in the exercieses README.md
DerWario Nov 12, 2025
4700e8a
Merge pull request #2310 from DerWario/main
mo8it Nov 20, 2025
b5d440f
Fix clippy3
mo8it Nov 20, 2025
1ebb4d2
Update solution files to match exercise files
JatinSanghvi Dec 19, 2025
7850a73
Merge pull request #2324 from JatinSanghvi/main
mo8it Dec 22, 2025
45f7891
chore: minor improvements
chapeupreto Jan 12, 2026
1b47fd9
chore: Update outdated GitHub Actions versions
pgoslatara Jan 22, 2026
87ac600
Merge pull request #2335 from pgoslatara/actup/update-actions-1769087609
mo8it Jan 22, 2026
fb87a26
Merge pull request #2331 from chapeupreto/minor-improvements
mo8it Feb 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,553 changes: 0 additions & 1,553 deletions .all-contributorsrc

This file was deleted.

2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[alias]
dev = ["run", "--", "dev"]
7 changes: 0 additions & 7 deletions .editorconfig

This file was deleted.

45 changes: 36 additions & 9 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,47 @@
name: Rustlings Tests
name: Check

on:
push:
branches: [ main ]
branches: [main]
paths-ignore:
- website
- '*.md'
pull_request:
branches: [ main ]
branches: [main]
paths-ignore:
- website
- '*.md'

env:
CARGO_TERM_COLOR: always

jobs:
build:
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v6
- name: Clippy
run: cargo clippy -- --deny warnings
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: rustfmt
run: cargo fmt --all --check
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v6
- uses: swatinem/rust-cache@v2
- name: cargo test
run: cargo test --workspace
dev-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: swatinem/rust-cache@v2
- name: rustlings dev check
run: cargo dev check --require-solutions
43 changes: 43 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Website

on:
workflow_dispatch:
push:
branches: [main]
paths: [website]

jobs:
build:
defaults:
run:
working-directory: website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install TailwindCSS
run: npm install
- name: Build CSS
run: npx @tailwindcss/cli -m -i input.css -o static/main.css
- name: Download Zola
run: curl -fsSL https://github.com/getzola/zola/releases/download/v0.20.0/zola-v0.20.0-x86_64-unknown-linux-gnu.tar.gz | tar xz
- name: Build site
run: ./zola build
- name: Upload static files as artifact
uses: actions/upload-pages-artifact@v3
with:
path: website/public/

deploy:
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
23 changes: 15 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
*.swp
# Cargo
target/
**/*.rs.bk
Cargo.lock
!/Cargo.lock

# State file
.rustlings-state.txt

# OS
.DS_Store
*.pdb
exercises/clippy/Cargo.toml
exercises/clippy/Cargo.lock
rust-project.json
.direnv/

# Editor
*.swp
.idea
.vscode
*.iml
*.o

# Ignore file for editors like Helix
.ignore
7 changes: 0 additions & 7 deletions .gitpod.yml

This file was deleted.

2 changes: 0 additions & 2 deletions .replit

This file was deleted.

7 changes: 7 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[default.extend-words]
"earch" = "earch" # Because of <s>earch in the list footer

[files]
extend-exclude = [
"CHANGELOG.md",
]
229 changes: 0 additions & 229 deletions AUTHORS.md

This file was deleted.

Loading