summaryrefslogtreecommitdiff
path: root/src/app_state.rs
AgeCommit message (Collapse)Author
2025-05-17third-party/custom -> communitymo8it
2025-02-18Upgrade to edition 2024mo8it
2024-10-17Use the default hashermo8it
2024-10-14Fix typosNahor
2024-10-14Update namesmo8it
2024-10-14Separate initialization with a structmo8it
2024-10-14Remove outdated commentsmo8it
2024-10-14Remove the tracking of done and pendingmo8it
2024-10-14Small improvements to showing progressmo8it
2024-10-13Show progress with exercise numbersmo8it
2024-10-13Improve check-all commandmo8it
2024-10-10First PR review changesmo8it
2024-10-02Show a progress bar when running check_allNahor
Replace the "Progress: xxx/yyy" with a progress bar when checking all the exercises
2024-10-02Limit the amount of parallelism in check_allNahor
Don't create more threads than there are CPU cores.
2024-10-02Use a channel to update the check_all progressNahor
The previous code was checking the threads in the order they were created. So the progress update would be blocked on an earlier thread even if later thread were already done. Add to that that multiple instances of `cargo build` cannot run in parallel, they will be serialized instead. So if the exercises needs to be recompiled, depending on the order those `cargo build` are run, the first update can be a long time coming. So instead of relying on the thread terminating, use a channel to get notified when an exercise check is done, regardless of the order they finish in.
2024-10-02Add command to check all the exercisesNahor
This allows for skipping repeating "next" when multiple exercises are done at once, or when earlier exercises have been updated/changed (and thus must be redone) while still working of the whole set (i.e. the final check_all is not yet available to flag those undone exercises)
2024-10-02Update all exercises during the final checkNahor
The previous code run the check on all exercises but only updates one exercise (the first that failed) even if multiple failed. The user won't be able to see all the failed exercises when viewing the list, and will have to run check_all after each fixed exercise. This change will update all the exercises so the user can see all that failed, fix them all, and only then need run check_all again.
2024-09-24Clear terminal before final check in watch modemo8it
2024-09-06Use the thread builder and handle the spawn errormo8it
2024-09-05Only render when neededmo8it
2024-09-04Canonicalize exercise paths only oncemo8it
2024-09-01Fix typomo8it
2024-08-29Simplify next_pending_exercise_indmo8it
2024-08-29Optimize reading and writing the state filemo8it
2024-08-29The number of exercises can't be zero, but stillmo8it
2024-08-29Fix error about too many open files during the final checkmo8it
2024-08-28Only disable links in VS code in the listmo8it
2024-08-28Use sol_pathmo8it
2024-08-25Use queue instead of Stylizemo8it
2024-08-25Final touches :Dmo8it
2024-08-08Use fixed seeds with ahashmo8it
2024-08-08Replace hashbrown with ahashRemo Senekowitsch
hashbrown is already used in the standard library, but we want the improved performance of the different hash algorithm. Using ahash directly conveys this intent more clearly.
2024-08-02Use `trim_ascii` instead of `trim`mo8it
2024-08-01Improve the runnermo8it
2024-07-28Make the output optionalmo8it
2024-07-28Run the final check in parallelmo8it
2024-07-25Use the rexported crossterm from ratatuimo8it
2024-07-07Mark the last exercise as donemo8it
2024-06-01Check that all solutions run successfullymo8it
2024-05-13Use public comments for public itemsmo8it
2024-05-13Document exercisemo8it
2024-05-13Don't skip exercises on file changesmo8it
2024-05-13Improve input handlingmo8it
2024-05-12Optimize embedded dirsmo8it
2024-04-30test next_pending_exercise_indmo8it
2024-04-30Fix clearing the terminalmo8it
2024-04-30Implement From<ExerciseInfo> for Exercisemo8it
2024-04-29Document main and app_statemo8it
2024-04-27Fix initializationmo8it
2024-04-27Respect the target-dir config and show tests' outputmo8it