aboutsummaryrefslogtreecommitdiff
path: root/examples/example-pathfinder/build.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-06-28 09:18:17 +0800
committer魏曹先生 <1992414357@qq.com>2026-06-28 09:18:17 +0800
commit86bc9000c5687db6434a5d20f409dda8b1d7a43a (patch)
treec28cb62dee7ad1a81abf9345e16b725866fbce7a /examples/example-pathfinder/build.rs
parent748c14588cf1c31c8b8d60a9c94349c0173ef607 (diff)
feat(docs): add Module Pathfinder example for the `pathf` feature
Diffstat (limited to 'examples/example-pathfinder/build.rs')
-rw-r--r--examples/example-pathfinder/build.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/example-pathfinder/build.rs b/examples/example-pathfinder/build.rs
new file mode 100644
index 0000000..1dcc2fc
--- /dev/null
+++ b/examples/example-pathfinder/build.rs
@@ -0,0 +1,10 @@
+use mingling::builds::analyze_and_build_type_mapping;
+
+fn main() {
+ // --------- IMPORTANT ---------
+ // Use this method in build.rs,
+ // to analyze the project structure at build time,
+ // and automatically introduce members from other modules into gen_program!()
+ analyze_and_build_type_mapping().unwrap();
+ // --------- IMPORTANT ---------
+}