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

Enable warnings if async is disabled #10145

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

alexcrichton
Copy link
Member

Continuation of work in #10131.

This required a number of organizational changes to help cut down on #[cfg], notably lots of async-related pieces from store.rs have moved to store/async_.rs to avoid having lots of conditional imports. Additionally this removes all of the #[cfg] annotations on those methods already.

Additionally the signature of AsyncCx::block_on was updated to be a bit more general to ideally remove the need for Pin but it ended up not panning out quite just yet. In the future it should be possible to remove the need for Pin at callsites though.

@alexcrichton alexcrichton requested a review from a team as a code owner January 28, 2025 23:20
@alexcrichton alexcrichton requested review from pchickey and removed request for a team January 28, 2025 23:20
@github-actions github-actions bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Jan 29, 2025
Continuation of work in bytecodealliance#10131.

This required a number of organizational changes to help cut down on
`#[cfg]`, notably lots of async-related pieces from `store.rs` have
moved to `store/async_.rs` to avoid having lots of conditional imports.
Additionally this removes all of the `#[cfg]` annotations on those
methods already.

Additionally the signature of `AsyncCx::block_on` was updated to be a
bit more general to ideally remove the need for `Pin` but it ended up
not panning out quite just yet. In the future it should be possible to
remove the need for `Pin` at callsites though.
@alexcrichton alexcrichton requested a review from a team as a code owner January 29, 2025 18:30
@alexcrichton alexcrichton requested review from dicej and removed request for a team January 29, 2025 18:30
@alexcrichton alexcrichton added this pull request to the merge queue Jan 29, 2025
Merged via the queue into bytecodealliance:main with commit facc992 Jan 29, 2025
39 checks passed
@alexcrichton alexcrichton deleted the no-warnings-async branch January 29, 2025 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wasmtime:api Related to the API of the `wasmtime` crate itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants