summaryrefslogtreecommitdiff
path: root/src/main.rs
AgeCommit message (Collapse)Author
2023-03-31fix(main.rs): remove trailing spacesAlexandre ESSE
2023-03-10release: 5.4.1liv
2023-02-12release: 5.4.0liv
2023-01-04chore(watch): decrease watch delayTenzinRabgy
closes #1215
2023-01-03Fix typo in method nameTobias Klauser
2022-12-23chore: bump versionliv
2022-10-14Merge pull request #1220 from azzamsa/percentageliv
feat(verify): add progress percentage in watch mode
2022-10-14feat(verify): add progress percentage in watch modeazzamsa
2022-10-12Apply uninlined-format-args clippy lintYuri Astrakhan
This lint should also be applied to the excersies, but I am not certain how to run it for all non-crate individual files. To re-run: ``` rustup run nightly cargo clippy --fix -- -A clippy::all -W clippy::uninlined_format_args ```
2022-09-06chore: release 5.2.1mokou
2022-08-27chore: release 5.2.0mokou
2022-08-18chore: Add suggested changesmagnusrodseth
2022-08-17feat: Add reset command, given a filenamemagnusrodseth
2022-08-17chore: release 5.1.1mokou
2022-08-16chore: bump versionmokou
2022-07-16chore: bump versionmokou
2022-07-01chore: bump versionmokou
2022-06-17Add lsp command to fix rust-analyzerJack Clayton
2022-04-20Merge branch 'main' into progress-indicatorRyan Lowe
2022-04-20chore: bump versionmokou
Plus, remove the clog configuration file, since that's not being used anymore.
2022-04-14chore: bump versionmokou
2022-02-05feat!: Add progress indicatorRyan Lowe
closes #360 BREAKING CHANGE: verify() has a new function signature so it can know the current completion progress
2022-02-04Merge branch 'main' into textapogeeoak
2021-09-25release: 4.6.0ana
2021-09-24feat: Add "quit" command to `rustlings watch`Antoine Busch
closes: #842
2021-09-24chore: improve println! usageana
2021-09-21feat: add more watch commandsana
Includes: - quit, to quit the shell instead of having to press Cmd/Ctrl-C or Cmd/Ctrl-D - help, to display an overview of all the commands available in watch mode. Closes #842.
2021-08-24 fix(cli): remove unnecessary borrows (#829)Ben Armstead
* Update dependencies * Format better and remove unnecessary borrows
2021-07-07release: 4.5.0ana
Signed-off-by: ana <ana@ana.st>
2021-06-30feat(cli): Add "next" to run the next unsolved exercise. (#785)Richthofen
* Add "run next" to run the next unsolved exercise. * Fix a grammar error in the message. * Update README.md with the suggested change Co-authored-by: marisa <mokou@fastmail.com> * Update the README.md for "rustlings hint next". Co-authored-by: marisa <mokou@fastmail.com>
2021-04-27fix(cli): Move long text strings into constants.apogeeoak
2021-04-24release: 4.4.0mokou
2021-04-23chore(watch): add hint for the exercises README.mdZerotask
rustlings watch will now show an additional hint for the corresponding README.me
2021-04-21fix(main): Let find_exercise work with borrowsmokou
2021-04-21feat: Replace clap with arghmokou
I’ve been wanting to do this for a while, but always procrastinated on it. We’ve been using Clap since the 2.0 rewrite, but Clap is known to be a fairly heavy library. Since Rustlings is usually peoples’ first contact with a Rust compilation, I think it’s in our best interests that this complation is as fast as possible. In effect, replacing Clap with the smaller, structopt-style `argh` reduces the amount of crates needing to be compiled from 82 to 60. I also think this makes the code way easier to read, we don’t need to use Clap’s methods anymore, but can switch over to using pure Rust methods, e.g., switches are booleans, options are Option<String>s or the like, and subcommands are just structs.
2021-04-19feat(list): updated progress percentagePatrick Hintermayer
2021-04-18feat(list): added progress infoZerotask
Added a progress info at the bottom of the list for command: rustlings list closes #705
2021-02-24fix: Spelling errorLarry Garfield
2021-02-09chore: Updated source to follow clippy suggestions.apogeeoak
2021-01-08feat(cli): Improve the list command with options, and then someAbdou Seck
1. `rustlings list` should now display more than just the exercise names. Information such as file paths and exercises statuses should be displayed. The `--paths` option limits the displayed fields to only the path names; while the `--names` option limits the displayed fields to only exercise names. You can also control which exercises are displayed, by using the `--filter` option, or the `--solved` or `--unsolved` flags. Some use cases: - Fetching pending exercise files with the keyword "conversion" to pass to my editor: ```sh vim $(rustlings list --filter "conversion" --paths --unsolved) ``` - Fetching exercise names with keyword "conversion" to pass to `rustlings run`: ```sh for exercise in $(rustlings list --filter "conversion" --names) do rustlings run ${exercise} done ``` 2. This should also fix #465, and will likely fix #585, as well. That bug mentioned in those issues has to do with the way the `watch` command handler fetches the pending exercises. Going forward, the least recently updated exercises along with all the other exercises in a pending state are fetched.
2020-12-29release: 4.3.0mokou
2020-11-11feat: Crab? (#586)Brock
Crab?
2020-11-10feat: add "rustlings list" commandCaleb Webber
2020-11-05fix: log error output when inotify limit is exceededCaleb Webber
closes #472
2020-08-10chore: Run cargo fmtÉtienne Barrié
2020-07-23feat(cli): Added 'cls' command to 'watch' mode (#474)Adi Vaknin
2020-06-14chore: Move from master branch to main branchmokou
2020-06-04feat: Add a --nocapture option to display test harnesses' outputsAbdou Seck
This new feature can be accessed by invoking rustlings with --nocapture. Both unit and integration tests added. closes #262 BREAKING CHANGES: The following function take a new boolean argument: * `run` * `verify` * `test` * `compile_and_test`
2020-06-04Collapse nested if statementsAbdou Seck
2020-02-20refactor: exercise evaluationRoberto Vidal
Exercise evaluation (compilation + execution) now uses Results Success/failure messages are standardized