diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-08-01 22:42:41 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-08-01 22:42:41 +0800 |
| commit | 0f9ca0745e3e80c751404f45cb2b97d4d14c97d3 (patch) | |
| tree | 20d1c5c93b11397db27263820e3863bbb2ac11e5 /docs/pages/8-setup-and-resources.md | |
| parent | e2050f6b6694733931edc6363194197c323b7d25 (diff) | |
refactor!: rename `extra_macros` feature to `extras`HEADmainfeat/new-pipeline-model
Update all references across docs, examples, and configuration files to
use the shorter `extras` feature name.
Diffstat (limited to 'docs/pages/8-setup-and-resources.md')
| -rw-r--r-- | docs/pages/8-setup-and-resources.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/pages/8-setup-and-resources.md b/docs/pages/8-setup-and-resources.md index 3858e99..12c7610 100644 --- a/docs/pages/8-setup-and-resources.md +++ b/docs/pages/8-setup-and-resources.md @@ -8,7 +8,7 @@ When a program needs to do some init work at startup—like parsing global args ## Initialize with Setup ```rust -// Features: ["extra_macros"] +// Features: ["extras"] @@@use mingling::macros::program_setup; @@@use mingling::Program; #[program_setup] @@ -32,14 +32,14 @@ A function annotated with `#[program_setup]` receives `&mut Program<ThisProgram> Register it in `main` via `program.with_setup(...)` to use it. > [!NOTE] -> `#[program_setup]` requires the `extra_macros` feature. Without it, you can manually implement the `ProgramSetup` trait. +> `#[program_setup]` requires the `extras` feature. Without it, you can manually implement the `ProgramSetup` trait. ## Extract Global Args The most common use of Setup is extracting global args. Mingling provides a few helper methods: ```rust -// Features: ["extra_macros"] +// Features: ["extras"] @@@use mingling::macros::program_setup; @@@use mingling::Program; #[program_setup] |
