1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2026-04-26 20:42:25 +02:00
Commit Graph

662 Commits

Author SHA1 Message Date
mo8it dace3e3953 Add run_cmd 2026-04-06 16:58:15 +02:00
mo8it c9ccedcff6 Support VSCode and --edit-cmd as editor 2026-04-06 16:58:15 +02:00
mo8it 4d97c31c0f Add Zellij support 2026-04-06 01:32:29 +02:00
mo8it 95b6160b54 Don't manually inline 2026-04-05 17:29:24 +02:00
mo8it c466d01da9 Unify imports 2026-04-05 17:28:27 +02:00
mo8it a28b9eda84 Delay inside_vcs_repo check until Git initialization 2026-03-14 18:26:03 +01:00
Mo Bitar 802dcfc987 Merge pull request #2285 from senekor/senekor/kvtomxvosvvx
Avoid initializing nested Git repository
2026-03-14 18:00:03 +01:00
mo8it ceb98475e2 Avoid unneeded castings 2026-03-14 17:41:13 +01:00
mo8it 337f6b1521 Apply pedantic Clippy lints 2026-03-14 17:29:37 +01:00
mo8it 0ffeb14402 Avoid unneeded computation on full progress bar 2026-03-14 17:29:37 +01:00
Gabriel Feceoru d87a3b6ca5 Fix u16 mul overflow with big term width
When running rustlings in Rover IDE, term width could have a value of 2480
which causes u16 mul overflow.
2026-03-14 16:34:38 +01:00
Remo Senekowitsch 17ff88902b Avoid initializing nested Git repository
Previously a Git repository was initialized if a Cargo workspace was
detected. However, it's also possible for users to initialize rustlings
in an existing Git repository that doesn't contain a Cargo workspace. In
that case, it's still undesirable to initialize a nested Git repository
for rustlings. We therefore search all ancestors of the current working
directory for `.git` or `.jj` directories to determine if rustlings is
being initialized in an existing Git repository.
2026-02-26 17:57:47 +01:00
mo8it 7e5793b642 Remove \r on Windows 2026-02-26 17:43:44 +01:00
mo8it 8738518699 Use rustlings_dir when deleting the temporary dir before recreating it 2026-02-26 16:21:49 +01:00
mo8it 9011d34987 Swap name and dir to stay consistent with the info file 2026-02-26 16:12:34 +01:00
mo8it 2512701e2f Keep exercise path owned 2026-02-26 16:10:09 +01:00
mo8it 0cbcb8964c Borrow deserialized values 2026-02-26 16:10:09 +01:00
Remo Senekowitsch 95a597eb82 Fix workspace detection with windows line endings
Some cargo workspaces may contain windows line endings. Even if the
file is stored in a repo with unix line endings, users may have some
setting activated that automatically translates them to windows line
endings when working locally.
2025-09-23 15:29:26 +02:00
mo8it 6ec2e194ae Apply Clippy lints 2025-08-22 00:01:23 +02:00
mo8it 2d1d531550 Fix file links in VS Code 2025-08-21 23:15:48 +02:00
mo8it a712e484d0 Update deps 2025-08-18 12:01:21 +02:00
mo8it f24861957a Check for Clippy on init 2025-07-04 23:35:13 +02:00
mo8it 1a633e2757 Split lines after newline 2025-07-04 23:22:05 +02:00
mo8it 9fecdba101 No need to flush after printing newlines 2025-06-28 02:15:14 +02:00
mo8it 7af38e684d Print newline after progress on failure 2025-06-28 02:08:00 +02:00
mo8it e8da6869f8 Don't run rustfmt during dev check if there are no solutions 2025-06-28 01:43:41 +02:00
mo8it 57b3727b3e Don't ignore .rustlings-state.txt in .gitignore of rustlings dev new 2025-06-28 01:32:18 +02:00
mo8it a51d6f1309 third-party/custom -> community 2025-05-17 21:25:19 +02:00
mo8it e73fff3bd4 Add dev alias 2025-05-16 11:09:06 +02:00
mo8it 8dff0df266 Use std pipe 2025-05-16 11:09:06 +02:00
mo8it e76ca5e2b9 Use a separate target dir for rust analyzer 2025-05-12 20:38:04 +02:00
mo8it 1eb6c1e469 Update the edition of the solution format checker 2025-02-21 13:06:11 +01:00
mo8it a56ccb6f4f Fix new Clippy lint 2025-02-18 20:12:23 +01:00
mo8it d9872f2615 Upgrade to edition 2024 2025-02-18 20:10:52 +01:00
mo8it fbfd4f25e7 Disable following symlinks in the watcher 2025-01-16 10:41:48 +01:00
mo8it eff2ce8a23 Ignore input while checking all exercises in watch mode 2024-11-11 14:55:58 +01:00
mo8it f49164e69b Fix typo 2024-11-11 14:43:38 +01:00
mo8it 46ad25f925 Fix contrast in terminals with a light theme 2024-11-11 14:34:33 +01:00
mo8it e8c2a79516 Deduplicate code for printing keys 2024-10-26 16:55:15 +02:00
mo8it 930a0ea73b list: Highlight search match in exercise names 2024-10-17 16:00:10 +02:00
mo8it 7e2f56f41a Use the default hasher 2024-10-17 15:03:43 +02:00
mo8it 99496706c5 Apply new Clippy lints 2024-10-17 14:49:07 +02:00
Nahor f33ba139b4 Fix typos 2024-10-14 10:17:17 -07:00
mo8it 990a722852 Limit the maximum number of exercises to 999 2024-10-14 15:57:44 +02:00
mo8it a675cb5754 Replace ahash with foldhash 2024-10-14 15:24:42 +02:00
mo8it 932bc25d88 Remove unneeded line 2024-10-14 01:28:34 +02:00
mo8it bdc6dad8de Update names 2024-10-14 01:28:12 +02:00
mo8it ea73af9ba3 Separate initialization with a struct 2024-10-14 01:06:11 +02:00
mo8it fc5fc0920f Remove outdated comments 2024-10-14 00:48:12 +02:00
mo8it 9705c161b4 Remove the tracking of done and pending 2024-10-14 00:45:41 +02:00