From 979e881762a728661e72efd99bc2b35b3db8c71b Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 24 May 2026 18:20:34 +0800 Subject: Require explicit import of `crate::Next` in chained functions --- CHANGELOG.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'CHANGELOG.md') 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) -- cgit