Commit Graph
697 Commits
Author SHA1 Message Date
Remo Senekowitsch cf3a66fe5e use --message-format=plain for cargo locate-project
This avoids the deserialization step.
2026-09-21 16:36:32 +02:00
Remo Senekowitsch 359ece4d27 fix parsing of cargo locate-project output
Deserializing the output of `cargo locate-project --workspace` failed
for a windows user, with the error message from serde that `root` is a
string and not a path. Hopefully, using a string directly will also
work on Windows.
2026-09-21 15:51:46 +02:00
Remo Senekowitsch eef467feb3 optimize loop 2026-08-29 22:39:33 +03:00
Remo Senekowitsch 2cef23bb48 write input files to disk before running exercise 2026-08-29 22:39:33 +03:00
Remo Senekowitsch ca9b2b8582 run exercises with CWD set to their directory 2026-08-29 22:39:33 +03:00
Remo Senekowitsch 97be7fbf5d fix tests 2026-08-29 22:39:33 +03:00
Remo Senekowitsch 71bb3e2122 dev check: allow input files 2026-08-29 22:39:33 +03:00
Remo Senekowitsch d0109d68be move input files into exercise directory 2026-08-29 22:39:33 +03:00
Remo Senekowitsch 8cc9990af9 async1: Read input from files 2026-08-29 22:39:33 +03:00
Remo Senekowitsch 1b4e590e29 Add readme to generated rustlings directory
This can remind users how to use rustlings, in case they come back after
a lengthy break.
2026-08-05 17:49:33 +02:00
mo8it 30edc559b2 Trigger check all when an exercise is done but not marked as such 2026-08-05 15:48:49 +02:00
mo8it 9d6388387f Remove check all input 2026-08-05 15:48:49 +02:00
mo8it 283a508ad9 Add command timeout 2026-08-05 15:48:49 +02:00
mo8it 62c90241ac New check progress visualization 2026-08-05 15:48:49 +02:00
mo8it a93a10ac68 Allow processing for hints and messages in the info file 2026-08-01 21:21:01 +02:00
mo8it 9065860390 Fix checking for tests on Windows 2026-08-01 12:47:31 +02:00
Mo Bitar d510f381d6 Revert "Fix dev check rejecting exercises with CRLF line endings" 2026-08-01 12:32:13 +02:00
Sandmeyer 219f479f71 cargo fmt 2026-07-31 20:46:54 +08:00
Sandmeyer 9a21aa3806 Fix dev check rejecting exercises with CRLF line endings 2026-07-31 20:38:42 +08:00
mo8it a40a4dd43b Update deps 2026-05-11 12:09:01 +02:00
mo8it 60edde0f59 Make Ferris more symmetrical 2026-05-11 12:08:00 +02:00
Remo Senekowitsch 4c4dd20be3 Merge main into senekor/soqukxyvzplr 2026-04-25 14:08:53 +02:00
Remo Senekowitsch e0334f79fe Avoid nested function definition 2026-04-25 14:08:53 +02:00
Remo Senekowitsch b86a532e28 Document enter keybind in list footer 2026-04-25 13:58:31 +02:00
Remo Senekowitsch c658a997f3 Turn unnecessary closure into regular function 2026-04-20 13:55:08 +02:00
Remo Senekowitsch 870776d03b Allow selecting next exercise with enter key 2026-04-19 00:38:18 +02:00
Remo Senekowitsch 03c5baf35c Emphasize hotkeys in footer with color 2026-04-18 05:57:14 +02:00
mo8it 432d1f84ea Add --no-editor 2026-04-07 00:10:25 +02:00
mo8it b5fbf59c0c Check if editor program exists before choosing it 2026-04-07 00:04:56 +02:00
mo8it 695f927893 Show file link on reset command 2026-04-06 23:29:59 +02:00
mo8it f403d9e1b6 Show current exercise on hint command 2026-04-06 23:29:59 +02:00
mo8it 95499f18dd Close editor on quit 2026-04-06 23:11:35 +02:00
mo8it bc0b4e9f9a Simplify Editor::open 2026-04-06 17:32:30 +02:00
mo8it b0dc014040 Improve description of --edit-cmd 2026-04-06 17:24:55 +02:00
mo8it b48663030b Add shlex 2026-04-06 16:58:15 +02:00
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