aboutsummaryrefslogtreecommitdiff
path: root/examples/example-pack-err/page.toml
blob: 37f2c31f04f0d5568ca69cc640543727e9c4b4c6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
[example]
id = "example-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 `structural_renderer` is enabled.
"""
tags = ["pack_err!", "extra_macros", "structural_renderer", "--json"]
files = ["src/main.rs", "Cargo.toml"]