aboutsummaryrefslogtreecommitdiff
path: root/mingling_core/src/renderer
Commit message (Collapse)AuthorAgeFilesLines
* feat(core): add generic parameter `C` to `StructuralData` trait魏曹先生44 hours2-7/+17
| | | | | | | Make `StructuralData` and `StructuralDataSealed` generic over a program collector type to bypass the orphan rule for `group_structural!`. This enables external types to implement `StructuralData<crate::ThisProgram>` without violating coherence.
* feat(core): add From impl for RenderResult with closure coercion魏曹先生45 hours1-1/+10
|
* feat(core, macros): add r_append! macro and RenderResult::append_other魏曹先生46 hours1-0/+44
| | | | | | | Implement `RenderResult::append_other()` to merge buffered content and immediate output behavior from one result into another. Add the `r_append!` macro with both explicit buffer (`dst, src`) and implicit buffer (`src`) usage forms, re-exported from `mingling::prelude`.
* feat(core)!: replace RenderResult with buffered output model魏曹先生46 hours1-68/+376
| | | | | | | | | | Remove `Deref<Target=str>` and `render_text:String` in favor of `render_buffer:Vec<(String, RenderResultMode)>` and an `immediate_output` flag. Add `RenderResultMode` enum, `r_eprint!`/`r_eprintln!` macros, and new buffer manipulation methods (`append_to_buffer`, `eprint`, etc.). Update `Display` to trim output and remove trailing newline. Migrate all callers and tests away from `Deref` usage.
* chore: add missing docs lint and document public API魏曹先生2 days2-0/+6
| | | | | | | Add `#![deny(missing_docs)]` across multiple crates and fill in documentation for all public items, including struct fields, enum variants, trait methods, and proc macros. Also mark two shell scripts as executable.
* feat(macros): add `#[buffer]` attribute and re-export `r_print!(ln)`魏曹先生3 days1-4/+4
| | | | | | | | | | | macros Reintroduce `r_print!` and `r_println!` macros as public exports, now supporting both explicit buffer argument and implicit `#[buffer]` attr. Add `#[buffer]` attribute macro that wraps unit-returning functions to produce a `RenderResult` with an automatically injected buffer variable. Relax `RenderResult::print()` and `println()` to accept `impl AsRef<str>`.
* feat(core): add multiple From implementations for RenderResult魏曹先生5 days1-0/+50
| | | | | Implement `From<()>`, integer types, String, &String, and &str to allow renderers to return simple values directly
* feat(renderer): add new() constructor to RenderResult魏曹先生11 days1-0/+17
|
* chore: run cargo fmt and rearrange re-exports in mingling魏曹先生2026-07-021-9/+12
|
* refactor(general_renderer): rename to structural_renderer魏曹先生2026-06-263-54/+54
|
* feat(core): decouple structured output from Groupped trait魏曹先生2026-06-262-23/+50
| | | | | | | Introduce `StructuralData` sealed trait and `pack_structural!` / `group_structural!` / `derive(StructuralData)` macros to control structured rendering separately from grouping. `Groupped` no longer requires `Serialize`.
* 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-093-0/+238
|
* Enhance code quality across the entire codebaseWeicao-CatilGrass2026-05-312-3/+32
|
* Support custom return types in `#[renderer]` macroWeicao-CatilGrass2026-05-221-0/+12
|
* Add documentation comments to chain and error enumsWeicao-CatilGrass2026-05-181-0/+5
|
* Refactor general_renderer into granular format-specific features魏曹先生2026-05-161-0/+13
|
* Add lifecycle hooks to program execution魏曹先生2026-05-091-0/+1
|
* Add missing articles and improve documentation魏曹先生2026-05-031-0/+7
|
* Add help system with `#[help]` macro and `HelpRequest` trait魏曹先生2026-04-251-0/+15
|
* Apply clippy suggestions and remove unused serde dependency魏曹先生2026-04-112-9/+9
|
* Add general renderer support with serialization formats魏曹先生2026-04-052-0/+126
|
* Add documentation for mingling_core魏曹先生2026-04-011-0/+41
|
* Rename mingling to mingling_core and update dependencies魏曹先生2026-03-291-0/+38