Commit Graph

50 Commits (main)

Author SHA1 Message Date
Dan 30273a6ee5
Merge branch 'main' into main 2 months ago
mo8it a27741b131 Merge branch 'main' into performance 2 months ago
mo8it 980ffa2a2b Use == on simple enums 2 months ago
mo8it ed0fcf8e3d Formatting 2 months ago
mo8it 01b7d6334c Remove unneeded to_string call 2 months ago
Dan Bond eb952a480d
verify: fix success message spacing
Signed-off-by: Dan Bond <danbond@protonmail.com>
3 months ago
Kazuki Matsuo 80388c042b
fix(verify): show stdout of the last line 3 months ago
liv d79984dbda
Merge pull request #1637 from mo8it/fix-warnings
Run clippy --fix
9 months ago
mo8it c0b8af2c42 Fix indicatif 9 months ago
mo8it 571bab20c1 Run clippy --fix 9 months ago
Romain Bayle 5d3696a9e6 feat(cli): added success-hints option for the rustlings command
closes #1373
1 year ago
Nidhal Messaoudi 1acbbb6d43 Fixing the progress percentage 1 year ago
himanshu soni 951826e6b5 fix(verify): progress bar proportion now updates with the number of files verified 1 year ago
liv 587e2d6dcd
Merge pull request #1220 from azzamsa/percentage
feat(verify): add progress percentage in watch mode
2 years ago
azzamsa 68388e5d4f feat(verify): add progress percentage in watch mode 2 years ago
Yuri Astrakhan 2940ad059d Apply uninlined-format-args clippy lint
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
```
2 years ago
Ryan Lowe 6fae5d6114
Merge branch 'main' into progress-indicator 2 years ago
mokou c811643d1e chore: bump library versions 2 years ago
Ryan Lowe 9be012dda0 feat!: Add progress indicator
closes #360

BREAKING CHANGE: verify() has a new function signature so it can
know the current completion progress
2 years ago
Ben Armstead 1cd9328a58
fix(cli): remove unnecessary borrows (#829)
* Update dependencies

* Format better and remove unnecessary borrows
3 years ago
Zerotask bd48544e25
style: formatted files with rustfmt 3 years ago
Matt Lebl 01e7f27aa6 refactor: change from match to if for NO_EMOJI 3 years ago
Matt Lebl 8d62a99637 feat: Replace emojis when NO_EMOJI env variable present 3 years ago
Étienne Barrié 81f8c2f83c chore: Run cargo fmt 4 years ago
Alexx Roche 816b1f5e85 feat: Remind the user of the hint option (#425)
Suggestion from AbdouSeck https://github.com/rust-lang/rustlings/issues/424#issuecomment-639870331
for when the student's code has errors.
4 years ago
Abdou Seck 8ad5f9bf53 feat: Add a --nocapture option to display test harnesses' outputs
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`
4 years ago
Abdou Seck 40741c5b0b Use .to_string rather than format macro 4 years ago
Roberto Vidal 3b6d5c3aaa feature: makes "compile" exercise print output, resolves #270
When running "compile"-mode exercises in interactive `verify` mode,
we print their output when we prompt the learner if they want to
continue. This improves the "experimentation" experience, since
trying different things does produce a visible change.
4 years ago
Mario Reder 1e2fd9c92f feat: Add clippy lints
- adds a new 'clippy' category for exercises
- clippy exercises should throw no warnings
- install script now also installs clippy

is related to https://github.com/rust-lang/rust-clippy/issues/2604
4 years ago
Roberto Vidal 43dc31193a refactor: exercise evaluation
Exercise evaluation (compilation + execution) now uses Results
Success/failure messages are standardized
4 years ago
vyaslav 8143d57b4e feat(watch): show hint while watching 5 years ago
Roberto Vidal 4b26546589 fix(run): makes `run` never prompt
`watch` and `verify` do prompt the user to actively move to the
next exercise. This change fixes `run` to never prompt. Previously
it was inconsistent between "test" and "compile" exercises.

BREAKING CHANGE: we again change the behavior of the `run` command
5 years ago
Roberto Vidal 2cdd61294f feat: improve `watch` execution mode
The `watch` command now requires user action to move to the next
exercise.

BREAKING CHANGE: this changes the behavior of `watch`.
5 years ago
Viacheslav Avramenko 1c4c8764ed feat: Added exercise for struct update syntax 5 years ago
Eddy Petrisor ca6bf966dd Cargo fmt the rustlings application code
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
5 years ago
Chris Pearce d01a71f7de Extract exercise struct to encapsulate path logic 5 years ago
Chris Pearce 4fa79ee02f Extract command builders into util 5 years ago
Andrew Bagshaw 4d7ce6e571 deduplicate 5 years ago
Andrew Bagshaw 3f114cc069 Start verification at most recently modified file 5 years ago
lyn abf175111d clippy-ify 5 years ago
lyn 70e59cca3c standardize exercise running via an external toml file 5 years ago
Hirokazu Hata 5cd5be8847 Add thread exercises to verify entrypoint 5 years ago
liv 02ceb0ba8c fix test command execution
seems like i forgot that you actually need to run executables created
with `rustc --test`! this also reworks the "test1" exercise a bit

closes #108
5 years ago
liv 320119ce96 add "--color always" to the other rustc commands 5 years ago
liv dc1f3b79f8 add tests; refactor exercise links 5 years ago
liv 141db7795b add --test run flag 5 years ago
liv 17e12433cb add a test 5 years ago
liv b90f642029 remove the ex*.rs files 5 years ago
liv e03a98cbf6 rustfmt 5 years ago
liv a388bb3798 split codebase 5 years ago