fix: use non-blocking io because rust does not support it now #1252
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
rust 目前不支持非阻塞 stdio: rust-lang/rust#100673 , 在 antd 项目中跑挂了 https://github.com/ant-design/ant-design/actions/runs/9395487649/job/25875528581?pr=49109。
nextjs 同类问题:https://github.com/vercel/next.js/pull/56789/files#diff-907b7be0cfc75bd37773e5ebc38d1deffa40861b8ac1cde92e4992e284a1ee59
Summary by CodeRabbit
mako
包中index.ts
中的blockStdout
函数,移除了对'darwin'平台的检查,并将stdout和stderr的设置合并为阻塞以实现Rust兼容性。