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/dev | |
| 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/dev')
| -rw-r--r-- | docs/dev/pages/issues/_the-mod-pathfinder.md | 2 | ||||
| -rw-r--r-- | docs/dev/pages/issues/the-command-macro.md | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/docs/dev/pages/issues/_the-mod-pathfinder.md b/docs/dev/pages/issues/_the-mod-pathfinder.md index 8869beb..92cdb5f 100644 --- a/docs/dev/pages/issues/_the-mod-pathfinder.md +++ b/docs/dev/pages/issues/_the-mod-pathfinder.md @@ -32,7 +32,7 @@ mod sub { } ``` -There are a few exceptions, such as the implicit Dispatcher provided by `extra_macros`, but these can be inferred from the node name: +There are a few exceptions, such as the implicit Dispatcher provided by `extras`, but these can be inferred from the node name: ```rust dispatcher!("remote.add"); // although the type is unknown, we can infer CMDRemoteAdd and EntryRemoteAdd diff --git a/docs/dev/pages/issues/the-command-macro.md b/docs/dev/pages/issues/the-command-macro.md index 2f4a80a..82d733c 100644 --- a/docs/dev/pages/issues/the-command-macro.md +++ b/docs/dev/pages/issues/the-command-macro.md @@ -16,7 +16,7 @@ For a long time, creating a command in Mingling required the following steps: dispatcher!("greet", CMDGreet => EntryGreet); ``` -Or use the implicit syntax provided by `extra_macros` (automatically deriving `CMDGreet` and `EntryGreet`): +Or use the implicit syntax provided by `extras` (automatically deriving `CMDGreet` and `EntryGreet`): ```rust dispatcher!("greet"); @@ -151,11 +151,11 @@ In Mingling, there is no concept called `Command` — all behavior is the result ## Enabling -This macro requires the `extra_macros` feature. Enable it in your `Cargo.toml`: +This macro requires the `extras` feature. Enable it in your `Cargo.toml`: ```toml [dependencies] -mingling = { version = "...", features = ["extra_macros"] } +mingling = { version = "...", features = ["extras"] } ``` ## Caveats |
