Skip to content

Commit

Permalink
fix: Include exercises folder in the project structure behind a featu…
Browse files Browse the repository at this point in the history
…re (#917)

closes #859
closes #913
closes #942
  • Loading branch information
x-hgg-x authored Mar 29, 2022
1 parent cd2b5e8 commit 179a75a
Show file tree
Hide file tree
Showing 25 changed files with 112 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ console = "0.7.7"
notify = "4.0.15"
toml = "0.4.10"
regex = "1.1.6"
serde = {version = "1.0.10", features = ["derive"]}
serde = { version = "1.0.10", features = ["derive"] }

[[bin]]
name = "rustlings"
Expand All @@ -21,3 +21,6 @@ path = "src/main.rs"
assert_cmd = "0.11.0"
predicates = "1.0.1"
glob = "0.3.0"

[features]
exercises = []
2 changes: 2 additions & 0 deletions exercises/advanced_errors/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mod advanced_errs1;
mod advanced_errs2;
2 changes: 2 additions & 0 deletions exercises/clippy/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mod clippy1;
mod clippy2;
4 changes: 4 additions & 0 deletions exercises/collections/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mod hashmap1;
mod hashmap2;
mod vec1;
mod vec2;
5 changes: 5 additions & 0 deletions exercises/conversions/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mod as_ref_mut;
mod from_into;
mod from_str;
mod try_from_into;
mod using_as;
3 changes: 3 additions & 0 deletions exercises/enums/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mod enums1;
mod enums2;
mod enums3;
6 changes: 6 additions & 0 deletions exercises/error_handling/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
mod errors1;
mod errors2;
mod errors3;
mod errors4;
mod errors5;
mod errors6;
5 changes: 5 additions & 0 deletions exercises/functions/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mod functions1;
mod functions2;
mod functions3;
mod functions4;
mod functions5;
3 changes: 3 additions & 0 deletions exercises/generics/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mod generics1;
mod generics2;
mod generics3;
2 changes: 2 additions & 0 deletions exercises/if/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mod if1;
mod if2;
2 changes: 2 additions & 0 deletions exercises/intro/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mod intro1;
mod intro2;
4 changes: 4 additions & 0 deletions exercises/macros/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mod macros1;
mod macros2;
mod macros3;
mod macros4;

This comment has been minimized.

Copy link
@TrollZonly

TrollZonly May 16, 2022

fortnite battle pass i just sh%t

26 changes: 26 additions & 0 deletions exercises/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
mod advanced_errors;
mod clippy;
mod collections;
mod conversions;
mod enums;
mod error_handling;
mod functions;
mod generics;
mod r#if;
mod intro;
mod macros;
mod modules;
mod move_semantics;
mod option;
mod primitive_types;
mod quiz1;
mod quiz2;
mod quiz3;
mod quiz4;
mod standard_library_types;
mod strings;
mod structs;
mod tests;
mod threads;
mod traits;
mod variables;
3 changes: 3 additions & 0 deletions exercises/modules/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mod modules1;
mod modules2;
mod modules3;
5 changes: 5 additions & 0 deletions exercises/move_semantics/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
mod move_semantics1;
mod move_semantics2;
mod move_semantics3;
mod move_semantics4;
mod move_semantics5;
3 changes: 3 additions & 0 deletions exercises/option/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mod option1;
mod option2;
mod option3;
6 changes: 6 additions & 0 deletions exercises/primitive_types/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
mod primitive_types1;
mod primitive_types2;
mod primitive_types3;
mod primitive_types4;
mod primitive_types5;
mod primitive_types6;
7 changes: 7 additions & 0 deletions exercises/standard_library_types/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
mod arc1;
mod box1;
mod iterators1;
mod iterators2;
mod iterators3;
mod iterators4;
mod iterators5;
2 changes: 2 additions & 0 deletions exercises/strings/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mod strings1;
mod strings2;
3 changes: 3 additions & 0 deletions exercises/structs/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mod structs1;
mod structs2;
mod structs3;
3 changes: 3 additions & 0 deletions exercises/tests/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mod tests1;
mod tests2;
mod tests3;
1 change: 1 addition & 0 deletions exercises/threads/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mod threads1;
2 changes: 2 additions & 0 deletions exercises/traits/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
mod traits1;
mod traits2;
6 changes: 6 additions & 0 deletions exercises/variables/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
mod variables1;
mod variables2;
mod variables3;
mod variables4;
mod variables5;
mod variables6;
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#[cfg(feature = "exercises")]
#[path = "../exercises/mod.rs"]
mod exercises;

0 comments on commit 179a75a

Please sign in to comment.