aboutsummaryrefslogtreecommitdiff
path: root/mingling_pathf/src/patterns/metadata.rs
Commit message (Collapse)AuthorAgeFilesLines
* feat(pathf): enforce pedantic lints and update API ergonomics魏曹先生28 hours1-3/+4
| | | | | | | | | | - Add `#[must_use]` to public constructors and getters - Change `init_with_config` to accept `&PathfinderConfig` instead of owned value - Refactor `map_or_else` and `or_insert_with` for clippy compliance - Add `#![deny(clippy::pedantic)]` and `#![deny(clippy::nursery)]` - Document error cases in public API docs - Simplify duplicated dispatcher_clap analysis logic
* feat: add entry metadata system with compile-time typed values魏曹先生7 days1-0/+165
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.