diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-24 18:20:34 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-24 18:20:34 +0800 |
| commit | 979e881762a728661e72efd99bc2b35b3db8c71b (patch) | |
| tree | e4866204297693f9472de64288a693590114cce8 /CHANGELOG.md | |
| parent | 0d3639016ac89ca3c6d7a8d2c8aa3b7656069e4e (diff) | |
Require explicit import of `crate::Next` in chained functions
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index a6bda6b..36806ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -108,6 +108,20 @@ fn render(prev: Previous) { // Implicitly introduces `__renderer_inner_result` 5. **\[macros\]** Moved the `entry!`, `route!`, `#[program_setup]` macros into the `extra_macros` feature +6. **\[macros\]** The `crate::Next` generated by `gen_program!()` now requires explicit import into the project + +```rust +use crate::Next; + +#[chain] +fn handle_cmd(args: EntryCmd) -> Next { + // ^^^^\_ requires explicit import + // ... +} + +gen_program!(); +``` + --- ### Release 0.1.8 (2026-05-18) |
