aboutsummaryrefslogtreecommitdiff
path: root/mingling_macros
Commit message (Collapse)AuthorAgeFilesLines
* feat(workspace): add mingling_pathf crate and pathf feature魏曹先生46 hours1-0/+1
|
* feat(macros): add async mutable resource injection for `#[chain]`魏曹先生2 days3-27/+93
| | | | | | | Support `&mut T` resource parameters in async chain functions by using an extract-store pattern that avoids holding mutable borrows across await points. Remove the previous compile-time rejection of this combination.
* fix: use fully qualified path to get_global_set in pack_err魏曹先生2 days1-3/+1
|
* feat(macros, docs): register structural macros and update feature table魏曹先生4 days1-2/+10
|
* feat(macros): Render ResultEmpty for non-structural types魏曹先生4 days1-1/+7
|
* feat(macros): simplify ResultEmpty to a unit struct魏曹先生4 days2-6/+18
|
* refactor(general_renderer): rename to structural_renderer魏曹先生4 days7-61/+61
|
* feat(core): decouple structured output from Groupped trait魏曹先生4 days5-21/+536
| | | | | | | Introduce `StructuralData` sealed trait and `pack_structural!` / `group_structural!` / `derive(StructuralData)` macros to control structured rendering separately from grouping. `Groupped` no longer requires `Serialize`.
* fix(dispatch_tree): use proper snake_case for dispatcher static names魏曹先生5 days3-3/+6
| | | | | | | | | Fix the static name generation for dispatch tree nodes to use a correct snake_case conversion instead of a simple `.` to `_` replacement. Also correct the `__comp` completion dispatcher name from triple underscore to double underscore, resolving a mismatch between `register_dispatcher!` and `program_comp_gen`
* Make `dispatcher_clap` help function public魏曹先生5 days1-1/+1
|
* Trim whitespace from variant string after removing trailing comma魏曹先生7 days1-1/+1
|
* Disambiguate to_chain call via full qualification魏曹先生7 days1-3/+7
|
* Add entry-str dedup and registry cleanup in final gen魏曹先生7 days5-7/+39
|
* Add aliased syntax to `group!` macro魏曹先生7 days1-10/+56
| | | | | Allow `group!(Alias = TypePath)` to create a type alias and use the alias name as the enum variant, enabling more descriptive naming
* Add compile-time duplicate variant detection魏曹先生7 days5-10/+112
| | | | | | Add duplicate variant checks for chain, renderer, help, and completion registrations to produce a clear compile error instead of silently generating unreachable code
* Replace macro_rules dispatch with proc-macro generation魏曹先生7 days1-6/+107
| | | | | | | | Generate `render()` and `do_chain()` match dispatch directly in `program_final_gen`, using a compile-time `ASYNC_ENABLED` constant to select the correct sync/async signature. Removes the `__dispatch_program_renderers!` and `__dispatch_program_chains!` macros from `mingling_core`.
* Make route! macro auto-convert error types魏曹先生7 days1-7/+8
| | | | | | `route!()` now calls `Groupped::to_chain()` on the error branch, removing the need for callers to pre-convert with `.to_chain()` or `.to_render()`.
* Support resource injection in #[help] and #[completion魏曹先生7 days2-64/+187
|
* Support qualified type paths in four macros魏曹先生7 days6-82/+17
|
* Remove all explicit program name modes from macrosremoved-shit魏曹先生10 days9-591/+176
|
* Support single-segment type paths in group macro魏曹先生10 days1-1/+19
|
* Add `group!` macro for registering external types魏曹先生10 days2-0/+168
|
* Add shared `MockProgramCollect` and conditional `Groupped` bounds魏曹先生10 days2-1/+7
| | | | | | Extract duplicate `MockCollect` implementations into a reusable `MockProgramCollect` type. Conditionally require `Serialize` on the `Groupped` trait when the `general_renderer` feature is enabled.
* Move to_chain and to_render to Groupped trait魏曹先生10 days2-36/+0
|
* Add dispatch_tree integration to dispatcher_clap魏曹先生11 days1-1/+29
|
* Refactor macros `pack_err!` struct fields public魏曹先生11 days1-3/+3
|
* Add `pack_err!` macro for error structs with automatic name field魏曹先生11 days2-0/+213
|
* Update repository URLs to mingling-rs organizationWeicao-CatilGrass2026-06-101-5/+5
|
* Switch to workspace-level documentation buildsWeicao-CatilGrass2026-06-011-13/+13
|
* Change `ProgramSetup::setup` to consume `self` instead of borrow魏曹先生2026-06-011-1/+1
|
* Expand module-level documentationWeicao-CatilGrass2026-05-311-67/+291
|
* Enhance code quality across the entire codebaseWeicao-CatilGrass2026-05-3111-79/+79
|
* Replace license files with symlinks to root魏曹先生2026-05-292-211/+2
|
* Support doc comments and attributes on `pack!` and `dispatcher!` macros魏曹先生2026-05-292-71/+127
|
* Remove PackAttrs parsing and rendering from pack macro魏曹先生2026-05-291-105/+9
|
* Rename error types with consistent naming convention魏曹先生2026-05-292-29/+29
|
* Fix `program_comp_gen!` import issue魏曹先生2026-05-292-11/+116
| | | | | Fixed `program_comp_gen!` import when `comp` and `dispatch_tree` features coexist
* Rename CompletionDispatcher to CMDCompletion and hide internal types魏曹先生2026-05-291-5/+15
|
* Update docs and examples for clap binding with optional error parameter魏曹先生2026-05-291-0/+5
|
* Enable color feature for clap and fix help and error rendering魏曹先生2026-05-291-5/+6
|
* Introduce `Registry` type alias for global static declarations魏曹先生2026-05-291-10/+12
|
* Require explicit import of `crate::Next` in chained functions魏曹先生2026-05-241-1/+7
|
* Gate extra_macros items behind the feature flag魏曹先生2026-05-241-0/+6
|
* Add implicit dispatcher macro with auto-derived names魏曹先生2026-05-242-3/+102
|
* Add extra_macros feature to mingling and mingling_macros魏曹先生2026-05-241-0/+2
|
* Rework examples and add entry macro for testingWeicao-CatilGrass2026-05-232-0/+97
|
* Fix incorrect variable name in help attribute macroWeicao-CatilGrass2026-05-231-2/+2
|
* Refactor resource injection to use inline mut resource wrappingWeicao-CatilGrass2026-05-231-19/+26
|
* Refactor renderer to use injected resources directlyWeicao-CatilGrass2026-05-222-6/+4
|
* Extract resource injection into shared module and add to #[renderer]Weicao-CatilGrass2026-05-224-256/+277
|