diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-07-09 20:50:10 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-07-09 20:57:26 +0800 |
| commit | 52f478d71af90691a9e242d926b25d125e146ce8 (patch) | |
| tree | 42d2c4d8a50023a625047071f29cb15219355ed7 /docs/dev-docs/pages/issues/the-mod-pathfinder.md | |
| parent | 3de8d5b41c49019f6c45efb874019de7009f2de7 (diff) | |
docs(sidebar): rename code-verify-system link to Markdown Code
Verification System
Diffstat (limited to 'docs/dev-docs/pages/issues/the-mod-pathfinder.md')
| -rw-r--r-- | docs/dev-docs/pages/issues/the-mod-pathfinder.md | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/dev-docs/pages/issues/the-mod-pathfinder.md b/docs/dev-docs/pages/issues/the-mod-pathfinder.md index 5f8c902..676251d 100644 --- a/docs/dev-docs/pages/issues/the-mod-pathfinder.md +++ b/docs/dev-docs/pages/issues/the-mod-pathfinder.md @@ -27,13 +27,13 @@ mod sub { mingling::macros::pack!(ResultMyName = String); // directly creates ..::sub::ResultMyName } ``` - + There are a few exceptions, such as the implicit Dispatcher provided by `extra_macros`, but these can be inferred from the node name: ```rust dispatcher!("remote.add"); // although the type is unknown, we can infer CMDRemoteAdd and EntryRemoteAdd ``` - + And also `#[program_setup]`: ```rust @@ -42,7 +42,7 @@ fn custom_setup(program: &mut Program<ThisProgram>) { program.with_dispatchers((CMD1, CMD2, CMD3, CMD4, CMD5)); } ``` - + ## Pathf Output Format Uses TOML key-value pairs, formatted as follows: @@ -50,13 +50,13 @@ Uses TOML key-value pairs, formatted as follows: ```toml ResultRemoteAdd = "crate::mymod::ResultRemoteAdd" ``` - + Recommended storage location is under the target directory: ``` /target/{target}/{crate-name}/type-mapping.toml ``` - + ## Other Issues This solution is limited to Mingling's own syntax system. If types like `dispatcher!`, `pack!` are indirectly expanded through macros, the analyzer will not be able to discover them. |
