From 2eba732e17cf71dcf8a54b428a1c5e344582c2c2 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sat, 9 May 2026 17:37:37 +0800 Subject: Add exit code control and hook lifecycle features --- CHANGELOG.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 51ca3c2..499161e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,8 +46,19 @@ if mingling::feature::MINGLING_ASYNC { } ``` +5. **\[core\]** Added `with_hook` and `with_hook_anonymous` functions to embed callback events into the program lifecycle + +6. **\[core\]** Added `user_context.run_hook` configuration item to control whether the program runs hooks + +7. **\[core\]** Added `exec_and_exit`, which will return an `i32` exit code after the program ends + +8. **\[core\]** Added `ExitCodeSetup`, now you can use `mingling::update_exit_code(i32)` to control the exit code + +9. **\[core\]** `RenderResult` now carries new data `exit_code` + #### **BREAKING CHANGES**: -None + +1. **\[core\]** The signature of `exec` has been changed to `exec(self) -> i32` (previously was `exec(self)`) --- -- cgit