This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this script will generate mod.rs files that let rust-analyzer work | |
# without `rust-project.json` on the rustlings examples. | |
import os | |
import glob | |
for folder in glob.glob("exercises/*"): | |
if not os.path.isdir(folder): | |
continue | |
with open(os.path.join(folder, "mod.rs"), "w") as f: |