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…
This commit is contained in:
mo8it
2024-05-13 01:25:38 +02:00
parent d9df809838
commit 11fda5d70f
7 changed files with 1295 additions and 1292 deletions
+2 -1
View File
@@ -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;