summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-06-11chore: Fix a couple broken book linksRussell Cousineau
2019-06-11Auto merge of #169 - miller-time:fix-install-script, r=komaedabors
fix(installation): Fix rustlings installation check fixes #147 I did some quick testing with the `-x` check: ```sh if [ -x "$(notrustlings)" ] then echo "notrustlings does not exist" else echo "notrustlings appears to exist!" notrustlings fi ``` which produced: ``` ./test.sh: line 12: notrustlings: command not found notrustlings appears to exist! ./test.sh: line 17: notrustlings: command not found ``` (consistent with comments in issue) Using `if ! [ -x "$(command -v <command>)" ]` appears to be the standard way to perform this type of check.
2019-06-11Auto merge of #170 - miller-time:rename-iterator-exercise, r=komaedabors
fix(iterators): Rename iterator3.rs fixes #155
2019-06-11Auto merge of #176 - danwilhelm:dan-minor-text, r=komaedabors
chore: Minor text updates - Make the default rustlings executable text consistent with the README and install script by adding `--force`. - Remove a missed highlighting character from Issue #133.
2019-06-10chore: Remove missed highlighting char from Issue #133Dan Wilhelm
2019-06-10chore: Make install instructions consistentDan Wilhelm
2019-06-09fix(installation): Fix rustlings installation checkRussell Cousineau
2019-06-09docs: Move content from Readme to Contributingliv
2019-06-09docs: Recommend `rustlings watch` as defaultliv
2019-06-09docs: Add CONTRIBUTING.mdliv
2019-06-09chore: Fix link to Arc<T> in the bookRohan Prinja
2019-06-07fix(iterators): Rename iterator3.rsRussell Cousineau
2019-06-05feat(changelog): Use clog for changelogsliv
2019-06-051.3.0liv
2019-06-05Auto merge of #167 - rust-lang:fix/remove-highlighting, r=komaedabors
Remove highlighting and syntect Closes #166 and #122
2019-06-05Commit Cargo.lock fileliv
2019-06-05Remove highlighting and syntectliv
2019-05-26Auto merge of #164 - HanKruiger:master, r=komaedabors
Fix broken link
2019-05-26Auto merge of #165 - gushroom:fix-outdated-links, r=komaedabors
fixed outdated links The links had the 2018 book in them and they were outdated.
2019-05-26fixed outdated linksgushroom
2019-05-26Fix broken linkHanKruiger
2019-05-25Auto merge of #163 - briankung:add_structs, r=komaedabors
Adds a simple exercise for structures Thanks for rustlings! Here's a small contribution in return.
2019-05-25Adds a simple exercise for structuresBrian Kung
2019-05-23Auto merge of #162 - c-rustacean:rustfmt-and-ws-fixes, r=komaedabors
errorsn.rs: Separate also the hints from each other to avoid accidental viewing
2019-05-23errorsn.rs: Separate also the hints from each other to avoid accidental viewingEddy Petrisor
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
2019-05-22Auto merge of #161 - c-rustacean:rustfmt-and-ws-fixes, r=komaedabors
Rustfmt and ws fixes
2019-05-22rustfmt the exercisesEddy Petrisor
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
2019-05-22iterator3.rs: whitespace fixesEddy Petrisor
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
2019-05-22errorsn.rs: Separate hints from code, so hints are not accidentally seenEddy Petrisor
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
2019-05-22Cargo fmt the rustlings application codeEddy Petrisor
Signed-off-by: Eddy Petrisor <eddy.petrisor@gmail.com>
2019-05-22Add not passing integration test (#154)liv
Add not passing integration test
2019-05-22Update errors1.rs - Add Result type signature as it is difficult for new ↵liv
comers to understand Generics and Error all at once. (#157) Update errors1.rs - Add Result type signature as it is difficult for new comers to understand Generics and Error all at once.
2019-05-12Update errors1.rsJulien Bisconti
Add Result type signature as it is difficult for new comers to understand Generics and Error all at once
2019-05-09Add not passing integration testDenys Smirnov
2019-05-071.2.2liv
2019-05-07Revert --nocapture flagliv
This closes #149 and #152
2019-04-221.2.1liv
2019-04-22add a slightly more helpful error messageliv
2019-04-22fix the --nocapture functionalityliv
2019-04-221.2.0liv
2019-04-22damn itliv
2019-04-22use -- --nocapture when testingliv
2019-04-22Auto merge of #144 - yvan-sraka:patch-0, r=komaedabors
Add errors to exercises that compile without user changes Hi ! I played a bit with rustlings, and I felt that some exercises were incorrect because they passed the tests without me needing to edit the files! This gave me the feeling that the exercise was skiped! Especially when I use `rustlings watch`, it is easy to miss an exercise because the compilation error that is displayed is the one of the next exercise ... It is easy to identify "broken" exercises with: ```bash % find exercises -name "*.rs" | xargs -n 1 rustlings run ... ✅ Successfully ran exercises/move_semantics/move_semantics4.rs ✅ Successfully tested exercises/test2.rs ``` My suggestion is to make sure that these files trigger a compilation error by adding a simple syntax error (e.g. with `???` in the code that must change) so that our Rustacean can then play with it!
2019-04-22Add errors to exercises that compile without user changesYvan Sraka
2019-04-141.1.1liv
2019-04-13Auto merge of #143 - cjpearce:fix-exercise-path-matching, r=komaedabors
Canonicalize paths to fix path matching This PR should fix #126. The main solution to the issue was using `canonicalize()` on the paths we create for the exercises from `info.toml` and any user-specified paths, so that path `ends_with` matching will work correctly. As adding calls to the canonicalize function everywhere requires unwrapping, I also decided to extract a struct representing an exercise and use serde to deserialize the paths from the `info.toml` file up front. I also tried to move the path handling out into the `exercise.rs` file and down into `main.rs` so that it doesn't create as much clutter. There was already a lot of unwrapping and path handling in the other files and I felt like it was getting a bit too repetitive. If the approach is going too far (too many changes etc.) I'm happy to try to produce a smaller PR that fixes the bug without any refactoring.
2019-04-12Clean up test includes for File and PathChris Pearce
2019-04-12Remove unwrap on canonicalize resultChris Pearce
2019-04-12Extract exercise struct to encapsulate path logicChris Pearce
2019-04-08Auto merge of #142 - diodfr:patch-1, r=komaedabors
Fix links by deleting book version