diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-24 16:46:45 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-24 16:46:45 +0800 |
| commit | 11adad7db1b6202d5366527902c3f0a9fb90654f (patch) | |
| tree | 76ecde96bf98686dfa2d5e9fb00f280794757363 /mingling/src/example_docs.rs | |
| parent | 13699cfdccc901c2a7d53270f695384134ba2221 (diff) | |
Move entry, route, and program_setup macros to extra_macros feature
Remove these macros from the prelude and gate them behind the
`extra_macros` feature flag. Update examples and documentation
to enable the new feature where these macros are used.
Diffstat (limited to 'mingling/src/example_docs.rs')
| -rw-r--r-- | mingling/src/example_docs.rs | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mingling/src/example_docs.rs b/mingling/src/example_docs.rs index 70f2856..9a48596 100644 --- a/mingling/src/example_docs.rs +++ b/mingling/src/example_docs.rs @@ -31,7 +31,7 @@ /// path = "../../mingling" /// /// # Enable `parser` features -/// features = ["parser"] +/// features = ["parser", "extra_macros"] /// ``` /// /// Source code (./src/main.rs) @@ -477,9 +477,7 @@ pub mod example_completion {} /// [dependencies.mingling] /// path = "../../mingling" /// -/// features = [ -/// "parser", -/// ] +/// features = ["parser", "extra_macros"] /// ``` /// /// Source code (./src/main.rs) @@ -1582,7 +1580,7 @@ pub mod example_resources {} /// edition = "2024" /// /// [dependencies] -/// mingling = { path = "../../mingling" } +/// mingling = { path = "../../mingling", features = ["extra_macros"] } /// ``` /// /// Source code (./src/main.rs) @@ -1634,7 +1632,7 @@ pub mod example_setup {} /// edition = "2024" /// /// [dependencies] -/// mingling = { path = "../../mingling" } +/// mingling = { path = "../../mingling", features = ["extra_macros"] } /// ``` /// /// Source code (./src/main.rs) @@ -1644,6 +1642,7 @@ pub mod example_setup {} /// #[cfg(test)] /// mod tests { /// use super::*; +/// use mingling::macros::entry; /// use mingling::{assert_member_id, assert_render_result}; /// /// // --------- IMPORTANT --------- |
