aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/asset
Commit message (Collapse)AuthorAgeFilesLines
* refactor!: remove Node type and simplify dispatcher macro syntax魏曹先生4 hours2-295/+3
| | | | | | | The `dispatcher!` macro no longer requires a `CMD*` dispatcher type argument; the dispatcher struct is now generated internally as `__Dispatcher{Pascal}`. The `Node` type, `node!` macro, and `Dispatcher::node()` / `clone_dispatcher()` methods are removed.
* refactor!: remove dynamic dispatcher registration API魏曹先生5 hours1-414/+1
| | | | | | | Dispatchers are now always registered at compile time, removing the `with_dispatcher` / `with_dispatchers` methods and the `PathfinderConfig` API. The `dispatch_tree` feature now only controls the matching strategy (trie vs linear list).
* chore(docs): fix intra-doc link formatting魏曹先生3 days3-4/+4
| | | | | | Replace intra-doc links with explicit URLs for types that are not accessible from the current module scope, and add missing panic documentation section.
* docs: expand trait and type documentation with examples魏曹先生3 days11-151/+2156
|
* fix: suppress future_not_send lint and tighten Send bounds魏曹先生5 days1-0/+9
| | | | | Add `#[allow(clippy::future_not_send)]` to chain invocation methods and clarify Send requirements for `exec` bounds.
* refactor(core): extract global resource store into standalone container魏曹先生5 days1-66/+429
| | | | | | | | Refactor `GlobalResources` from a type-erased `Arc<Mutex<HashMap<...>>>` alias into a `GlobalResContainer` struct with per-resource mutexes. This prevents nested `modify_res` calls from deadlocking, allows independent containers to coexist, and keeps `Program`'s public resource API unchanged.
* refactor(asset): replace wildcard match with explicit variants魏曹先生7 days1-3/+3
|
* refactor(core): improve code style and public API clarity魏曹先生7 days5-70/+64
| | | | | | | | | | | | | | | | Replace bool-based settings with enums, refine visibility and signatures, and standardize `Self` usage across the crate. - Introduce `ErrorOutput`, `RenderOutput`, `PanicSilence`, `Verbosity`, `ColorOutput`, and `ProgressOutput` enums for clearer configuration semantics - Make `GlobalResources`, `ProgramCell`, and `split_input`/`split_input_string` public - Change hook info parameters to accept references and `split_input_string` to take `&str` - Apply `Self` shorthand throughout implementations and add `#[must_use]` attributes where appropriate - Enable strict clippy lints with targeted allowances
* feat: add entry metadata system with compile-time typed values魏曹先生13 days1-0/+14
| | | | | | | | | | | Add `Metadata<B>` trait and `#[metadata(Entry)]` attribute macro to attach arbitrary, compile-time-typed metadata to entries. Implement `ProgramCollect::get_metadata<T>()` for runtime retrieval, backed by a global registry populated by `register_metadata!`. Extend `pathf` with `MetadataPattern` to resolve metadata types across modules at build time. Add two examples demonstrating metadata usage with and without pathf integration.
* feat(core): add RendererInvoker and ChainInvoker types魏曹先生2026-07-241-0/+271
|
* refactor(core): rename ResourceMarker methods to internal names魏曹先生2026-07-243-26/+41
|
* refactor(global_resource): break long generic impl into multi-line where魏曹先生2026-07-221-1/+4
| | | | clause
* feat(core): return `&mut Self` from builder methods魏曹先生2026-07-212-3/+9
| | | | | Enables method chaining for `with_resource`, `with_dispatcher`, `with_dispatchers`, `with_hook`, and `with_setup`
* feat(asset): deprecate with_dispatcher when dispatch_tree is enabled魏曹先生2026-07-201-5/+29
|
* feat(macros): add Routable trait and update route! macro魏曹先生2026-07-191-0/+22
| | | | | | Introduce a `Routable` trait with `to_chain` and `to_render` methods, replacing direct `Grouped` usage in the `route!` macro so error branches correctly route through the rendering pipeline
* ix(macros)!: require explicit `.into()` on chain function return values魏曹先生2026-07-181-4/+3
|
* feat: require renderers to return RenderResult instead of mutating one魏曹先生2026-07-112-2/+2
| | | | | | | BREAKING CHANGE: The `render` method on `Renderer`, `HelpRequest`, and `ProgramCollect` now returns `RenderResult` instead of taking `&mut RenderResult`. The `r_print!` and `r_println!` macros have been removed in favor of using `std::io::Write` directly on `RenderResult`.
* chore: run cargo fmt and rearrange re-exports in mingling魏曹先生2026-07-021-7/+2
|
* feat(macros): add async mutable resource injection for `#[chain]`魏曹先生2026-06-271-0/+38
| | | | | | | 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.
* Move flag tests to separate module and clean up deref patterns魏曹先生2026-06-241-1/+1
|
* Add unit and integration tests for mingling_coreWeicao-CatilGrass2026-06-095-0/+716
|
* Remove misleading SAFETY comment in LazyRes force_initWeicao-CatilGrass2026-06-091-2/+2
|
* Add on-drop callback support to `LazyRes`Weicao-CatilGrass2026-06-081-20/+145
|
* Refactor LazyRes to use enum and drop factory after init魏曹先生2026-06-071-72/+113
|
* Add LazyRes for lazy resource initialization魏曹先生2026-06-071-0/+141
|
* Enhance code quality across the entire codebaseWeicao-CatilGrass2026-05-317-21/+19
|
* Update `modify_res` to return `Return` and rename internal method魏曹先生2026-05-211-4/+7
|
* Implement REPL execution with hooks and argument splitting魏曹先生2026-05-181-0/+3
|
* Add documentation comments to chain and error enumsWeicao-CatilGrass2026-05-181-0/+4
|
* Add mutable resource injection to `#[chain]` macro魏曹先生2026-05-161-0/+34
|
* Remove thiserror dependency and implement error types manually魏曹先生2026-05-151-4/+25
|
* Add panic catch for program execution魏曹先生2026-05-151-15/+1
|
* Add `modify` method to `ResourceMarker` trait魏曹先生2026-05-151-2/+12
|
* Add lifecycle hooks to program execution魏曹先生2026-05-091-2/+5
|
* Move `comp` module from `asset` to crate rootWeicao-CatilGrass2026-05-094-889/+0
|
* Dispatch arguments using prefix tree with dispatch_tree feature魏曹先生2026-05-081-5/+30
|
* Add dispatch tree feature for fast argument matching魏曹先生2026-05-072-1/+3
|
* Add support for resource injection in `#[chain]` macro魏曹先生2026-05-071-0/+6
|
* Add missing articles and improve documentation魏曹先生2026-05-033-0/+24
|
* Restrict GlobalResources visibility to crate魏曹先生2026-05-021-1/+1
|
* Add global resource system to Program魏曹先生2026-04-271-0/+116
|
* Add help system with `#[help]` macro and `HelpRequest` trait魏曹先生2026-04-251-0/+10
|
* Remove redundant generic parameter from Program struct魏曹先生2026-04-251-6/+6
|
* Add new_with_args and dispatch_args_dynamic to Program魏曹先生2026-04-223-10/+35
| | | | | Remove Display bound from Group type parameter and delete dispatcher_render macro. This is a breaking change.
* Make async an optional feature魏曹先生2026-04-191-0/+4
|
* Add Pickable implementation for enums with EnumTag trait魏曹先生2026-04-131-1/+3
|
* Remove comp module and add EnumTag derive macro魏曹先生2026-04-131-0/+11
|
* Use same suggestion format for PowerShell as ZshWeicao-CatilGrass2026-04-121-2/+2
|
* Add Windows-specific flag detection and improve PowerShell completionWeicao-CatilGrass2026-04-121-3/+16
|
* Fix typo in PowerShell shell flag from "pwsl" to "pwsh"魏曹先生2026-04-121-1/+1
|