From 78330940bd0fcab6ffbb8b930a1ae88d313a9437 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 20 Jun 2026 01:39:05 +0800 Subject: Add example for outside type registration --- docs/example-pages/examples.json | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'docs/example-pages') diff --git a/docs/example-pages/examples.json b/docs/example-pages/examples.json index 8e8719b..4d7c494 100644 --- a/docs/example-pages/examples.json +++ b/docs/example-pages/examples.json @@ -219,9 +219,24 @@ "Cargo.toml" ] }, + { + "id": "example-outside-type", + "name": "Outside Type", + "icon": "🆕", + "category": "advanced", + "desc": "Demonstrates how to use the `group!()` macro to convert an external type into a type recognizable by Mingling\n", + "tags": [ + "group!", + "extra_macros" + ], + "files": [ + "src/main.rs", + "Cargo.toml" + ] + }, { "id": "example-pack-err", - "name": "pack_err!", + "name": "Pack an Error", "icon": "🛑", "category": "macros", "desc": "Demonstrates how to use the `pack_err!` macro to define error types with automatic `name` field (snake_case at compile time) and optional `info` field. Also shows `--json` serialization when `general_renderer` is enabled.\n", -- cgit