summaryrefslogtreecommitdiff
path: root/src/embedded.rs
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-05-13 01:25:38 +0200
committermo8it <mo8it@proton.me>2024-05-13 01:25:38 +0200
commit11fda5d70f568e0f528d91dd573447719abe05f4 (patch)
tree683a2d1a8f807ea40908ef6c7a61c962e71d1d8b /src/embedded.rs
parentd9df809838191962a82e98ff01aaaa73950ba670 (diff)
Move info.toml to rustlings-macros/
This improves the experience for contributors on Windows becuase Windows can't deal with git symbolic links out of the box…
Diffstat (limited to 'src/embedded.rs')
-rw-r--r--src/embedded.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/embedded.rs b/src/embedded.rs
index 23c8d6e..45f8eca 100644
--- a/src/embedded.rs
+++ b/src/embedded.rs
@@ -70,6 +70,7 @@ impl ExerciseDir {
}
pub struct EmbeddedFiles {
+ pub info_file: &'static str,
exercise_files: &'static [ExerciseFiles],
exercise_dirs: &'static [ExerciseDir],
}
@@ -148,7 +149,7 @@ mod tests {
#[test]
fn dirs() {
- let exercises = toml_edit::de::from_str::<InfoFile>(include_str!("../info.toml"))
+ let exercises = toml_edit::de::from_str::<InfoFile>(EMBEDDED_FILES.info_file)
.expect("Failed to parse `info.toml`")
.exercises;