Local include

This commit is contained in:
2026-07-08 11:23:36 +02:00
parent 44ac3c365d
commit 8198b8d5cb
4 changed files with 21 additions and 1 deletions
+5
View File
@@ -338,6 +338,11 @@ impl GenRust for TopLevelKind {
.or_insert(Vec::new())
.push(crate::Include::Use(vis.clone(), incl.clone()));
}
Self::IncludeLocal(path) => {
cg.add("include!(\"");
cg.add(&path.replace(".mist", ".rs"));
cg.add("\");");
}
}
}
}