Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed some compilation errors introduced by #4204 that assume tokio::task::block_in_place() always exists #4402

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

Michael-F-Bryan
Copy link
Contributor

I noticed that cargo check --no-default-features --features=sys,wasmer/sys no longer works because #4204 introduced some calls to tokio::task::block_in_place() when #[cfg(feature = "sys")], but that function is only available when tokio's rt-multi-thread feature flag is enabled (enabled by wasix's sys-threads feature).

I've updated all places that called tokio::task::block_in_place() so they go through a shim function that will defer to tokio::task::block_in_place() if it is available. This also helped hoist the conditional compilation out of our business logic.

…okio::task::block_in_place()` always exists
@Michael-F-Bryan Michael-F-Bryan merged commit c96aec1 into master Jan 16, 2024
52 checks passed
@Michael-F-Bryan Michael-F-Bryan deleted the fix-block-in-place branch January 16, 2024 10:29
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.

2 participants