aboutsummaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorWeicao-CatilGrass <1992414357@qq.com>2026-05-17 22:30:50 +0800
committerWeicao-CatilGrass <1992414357@qq.com>2026-05-17 22:38:39 +0800
commitf27f5aeb09616b932ab48f0905994879dd8bafe5 (patch)
tree2deea67f7ed910ad824fbcce2330ab5c475e51a0 /CHANGELOG.md
parentbdd736ad9899aed74aaa2760c6e068dcae0e6925 (diff)
Rename `NextProcess` to `Next` across the codebase
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md23
1 files changed, 20 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 044e7d1..cce00fe 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -21,7 +21,7 @@ None
```rust
#[chain]
-fn process(prev: HelloEntry, age: &Age, name: &Name) -> NextProcess {
+fn process(prev: HelloEntry, age: &Age, name: &Name) -> Next {
// age and name are automatically injected from global resources
}
```
@@ -44,7 +44,7 @@ fn proc(prev: HelloEntry) -> ChainProcess<ThisProgram> {
```rust
#[chain]
-pub fn handle_some_entry(_prev: SomeEntry, exit: &mut ExitCode) -> NextProcess {
+pub fn handle_some_entry(_prev: SomeEntry, exit: &mut ExitCode) -> Next {
exit.exit_code = 2;
Empty::default()
}
@@ -82,7 +82,7 @@ if mingling::feature::MINGLING_ASYNC {
```rust
#[chain]
-fn your_chain(_prev: Prev) -> NextProcess {
+fn your_chain(_prev: Prev) -> Next {
// Use `modify_res` to modify the value of `ExitCode`
this::<ThisProgram>().modify_res(|r: &mut ExitCode| r.exit_code = 1);
@@ -124,6 +124,23 @@ this::<ThisProgram>().modify_res::<ExitCode>(|code| {
use crate::ThisProgram; // Can be removed if not used directly
```
+3. **\[core\]** **\[macros\]** Replace `NextProcess` placeholder with `Next`
+
+```rust
+// Before
+#[chain]
+fn your_chain(_prev: Prev) -> NextProcess {
+ // ...
+}
+
+// After
+#[chain]
+fn your_chain(_prev: Prev) -> Next {
+ // ...
+}
+
+```
+
---
### Release 0.1.7 (2026-05-04)