From 81635b93c597b10282cb14e0873f5e3d22395186 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 6 Jun 2026 23:16:51 +0800 Subject: Rename `ExitCode` to `ResExitCode` and `REPL` to `ResREPL` --- CHANGELOG.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 4c86be4..95db724 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,6 +43,19 @@ program.with_setup(BasicProgramSetup); 1. **\[core\]** Changed the signature of `ProgramSetup::setup` from `fn setup(&mut self, program: &mut Program) -> S` to `fn setup(self, program: &mut Program)`, consuming `self` instead of taking a mutable reference. Correspondingly, `Program::with_setup` now accepts `S` by value (`&mut self, setup: S`) instead of by mutable reference (`&mut self, setup: &mut S`). +2. **\[core\]** Consolidated resource naming for `ExitCode` and `REPL`: + - Renamed `ExitCode` to `ResExitCode` and moved `ResREPL` from the `mingling` root to `mingling::res::ResREPL` (the `mingling::ResREPL` re-export is removed). + - This aligns with the naming convention where resources are prefixed with `Res`. + - The corresponding setup `ExitCodeSetup` and resource injection remain unchanged. + +```rust +// Before +use mingling::{res::ExitCode, REPL}; + +// After +use mingling::{res::ResExitCode, res::ResREPL}; +``` + ### Release 0.1.9 (2026-05-29) #### Fixes: -- cgit