Skip to content

refactor: replace futures-async-stream with stable alternative asynk-strim#153

Merged
BugenZhao merged 2 commits intomainfrom
bz/corresponding-skink
May 4, 2026
Merged

refactor: replace futures-async-stream with stable alternative asynk-strim#153
BugenZhao merged 2 commits intomainfrom
bz/corresponding-skink

Conversation

@BugenZhao
Copy link
Copy Markdown
Member

@BugenZhao BugenZhao commented May 4, 2026

So that we can get rid of the unstable coroutines language feature in favor of switching to the stable toolchain.

asynk-strim itself is macro-free, but this PR uses an attr library asynk-strim-attr for minimal changes & indents.

…nk-strim`

Signed-off-by: Bugen Zhao <i@bugenzhao.com>
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request replaces the futures-async-stream dependency with asynk-strim-attr across the project, enabling the removal of the unstable coroutines feature. All asynchronous stream functions have been refactored to use the TryYielder pattern for emitting events. Feedback was provided regarding the use of a git dependency for asynk-strim-attr, suggesting that vendoring the code might be a safer alternative to ensure build reproducibility and security.

Comment thread Cargo.toml Outdated
Signed-off-by: Bugen Zhao <i@bugenzhao.com>
@BugenZhao BugenZhao merged commit d2b4e69 into main May 4, 2026
3 checks passed
@BugenZhao BugenZhao deleted the bz/corresponding-skink branch May 4, 2026 07:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant