mokou
7928122fce
feat: Replace clap with argh
...
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.
4 years ago
marisa
aa0db8379c
Merge pull request #714 from rust-lang/all-contributors/add-hongshaoyang
...
docs: add hongshaoyang as a contributor
4 years ago
allcontributors[bot]
eadd41a9ec
docs: update .all-contributorsrc [skip ci]
4 years ago
allcontributors[bot]
fab2eb9833
docs: update README.md [skip ci]
4 years ago
Shao Yang Hong
6bd791f2f4
fix(structs): Add 5.3 to structs/README ( #652 )
...
Co-authored-by: Shao Yang Hong <shaoyang.hong@ninjavan.co>
4 years ago
marisa
ec5f80dce1
Merge pull request #713 from rust-lang/all-contributors/add-k12ish
...
docs: add k12ish as a contributor
4 years ago
allcontributors[bot]
65cdc856ae
docs: update .all-contributorsrc [skip ci]
4 years ago
allcontributors[bot]
472f61485e
docs: update README.md [skip ci]
4 years ago
k12ish
b4de659438
fix(option2): Rename uninformative variables ( #675 )
...
Renaming uninformative names like `optional_value`, `value`, `optional_values_vec` and `value` helps users distinguish between the two parts of the task.
4 years ago
marisa
a37a8818c8
Merge pull request #712 from rust-lang/all-contributors/add-arthas168
...
docs: add arthas168 as a contributor
4 years ago
allcontributors[bot]
bdf01aa174
docs: update .all-contributorsrc [skip ci]
4 years ago
allcontributors[bot]
a941c69f09
docs: update README.md [skip ci]
4 years ago
Pete Pavlovski
72aaa15e6a
fix(hashmap2): Update incorrect assertion ( #660 )
...
The test description says "at least five types of fruit", but the test itself is checking for exactly five types of fruit, which was a bit misleading for newcomers like me :)
A simple change from "==" to ">=" should do the trick and successfully check for the "at least" condition.
4 years ago
marisa
3a06de71a8
Merge pull request #708 from Zerotask/list-command-added-to-readme
...
docs: added hint for rustlings list command
4 years ago
marisa
5e2b39a5c1
Merge pull request #711 from rust-lang/all-contributors/add-Zerotask
...
docs: add Zerotask as a contributor
4 years ago
allcontributors[bot]
63c942233e
docs: update .all-contributorsrc [skip ci]
4 years ago
allcontributors[bot]
2612edc133
docs: update README.md [skip ci]
4 years ago
marisa
e2ce9f42b5
Merge pull request #707 from Zerotask/list-command-progress-info
...
feat(list): added progress info
4 years ago
Patrick Hintermayer
1c6f7e4b7b
feat(list): updated progress percentage
4 years ago
Zerotask
e2c41903ad
docs: added hint for rustlings list command
...
Added hint for `rustlings list` to the "Doing exercises" section.
4 years ago
Zerotask
bd48544e25
style: formatted files with rustfmt
4 years ago
Zerotask
c0e3daacaf
feat(list): added progress info
...
Added a progress info at the bottom of the list for command: rustlings list
closes #705
4 years ago
Abdou Seck
f2ad3a6a0b
Merge pull request #697 from WowSuchRicky/main
...
Rename 'Lichi' to 'Lychee' in the fruit example
4 years ago
Abdou Seck
caf921a01f
Merge pull request #674 from Morsicus/fix/collections-exercises-naming
...
Update collections exercises naming
4 years ago
WowSuchRicky
b790bafc02
Rename lichi to lychee in the fruit example
4 years ago
Abdou Seck
ad3cd54cce
Merge pull request #694 from rust-lang/all-contributors/add-tlyu
...
docs: add tlyu as a contributor
4 years ago
allcontributors[bot]
1a6a725f88
docs: update .all-contributorsrc [skip ci]
4 years ago
allcontributors[bot]
1ad20d94ff
docs: update README.md [skip ci]
4 years ago
Abdou Seck
995c6f0fb1
Merge pull request #693 from tlyu/trait-obj-tryfrom
...
fix: use trait objects for try_from_into and from_str
4 years ago
Taylor Yu
c3e7b83178
fix: use trait objects for from_str
...
Use `Box<dyn error::Error>` to allow solutions to use `?` to propagate
errors.
4 years ago
Taylor Yu
2e93a588e0
fix: use trait objects for try_from_into
...
Use `Box<dyn error::Error>` to allow solutions to use `?` to propagate
errors. In the tests, explicitly check `is_ok()` instead of trying to
force the error type to `String` (or other `PartialEq` type) using
`assert_eq!()`.
4 years ago
marisa
9aeca3f97e
Merge pull request #692 from rust-lang/all-contributors/add-flakolefluk
...
docs: add flakolefluk as a contributor
4 years ago
allcontributors[bot]
2193fff4bb
docs: update .all-contributorsrc [skip ci]
4 years ago
allcontributors[bot]
aec2c65c63
docs: update README.md [skip ci]
4 years ago
Ignacio Le Fluk
a6509cc4d5
fix(functions3): improve function argument type ( #687 )
4 years ago
marisa
a02b279750
chore: Provide a working Windows installation link
4 years ago
marisa
ece841f5ce
Merge pull request #680 from rust-lang/all-contributors/add-blerchy
...
docs: add blerchy as a contributor
4 years ago
allcontributors[bot]
2a6e4dc8a6
docs: update .all-contributorsrc [skip ci]
4 years ago
allcontributors[bot]
c163011cc0
docs: update README.md [skip ci]
4 years ago
marisa
b350945a16
Merge pull request #676 from blerchy/feat/no-emoji
...
Replace emojis when NO_EMOJI env variable present
4 years ago
marisa
1ef368a69d
Merge pull request #679 from rust-lang/new-install-urls
...
chore: Update install URLs
4 years ago
marisa
8dc587b01a
chore: Update install URLs
4 years ago
allcontributors[bot]
550c4293ed
docs: add chapeupreto as a contributor ( #678 )
...
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
4 years ago
Rod Elias
3df094713f
chore: capitalize `c` letter
...
By capitalizing the `c` letter it makes clear that we're talking about the C programming language.
4 years ago
Matt Lebl
01e7f27aa6
refactor: change from match to if for NO_EMOJI
4 years ago
Matt Lebl
8d62a99637
feat: Replace emojis when NO_EMOJI env variable present
4 years ago
Mickael Fortunato
ab9995e76e
doc: Update collections exercises instruction to match the standard naming
4 years ago
Mickael Fortunato
bef39b1259
fix(collections): Naming exercises for vectors and hashmap
4 years ago
Pascal H
0d894e6ff7
fix(quiz3): Force an answer to Q2 ( #672 )
...
Add also an example of unimplemented!() macro.
4 years ago
allcontributors[bot]
be9510539e
docs: add hpwxf as a contributor ( #671 )
...
* docs: update README.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
4 years ago