Skip to content

Add cargo features for smol and tokio runtimes#125

Merged
kevinmehall merged 4 commits intomainfrom
async-rt
Apr 12, 2025
Merged

Add cargo features for smol and tokio runtimes#125
kevinmehall merged 4 commits intomainfrom
async-rt

Conversation

@kevinmehall
Copy link
Owner

@kevinmehall kevinmehall commented Apr 2, 2025

#100 added a dependency on blocking for running blocking syscalls on a threadpool. This extends that to allow choosing blocking (smol) or tokio via cargo features, also allowing omitting both if the affected methods don't need to be used asynchronously.

This increases the MSRV to 1.79: The associated type bounds feature, stabilized in 1.79 allows adding an implied Send bound on all IntoFuture types used with MaybeFuture, so every function doesn't have to be marked as Send. This is going to be especially useful with wasm, because it allows the Send bound to be turned on and off in one place.

The associated type bounds feature, stabilized in 1.79 allows adding
an implied Send bound on all IntoFuture types used with MaybeFuture,
so every function doesn't have to be marked as Send.

This is going to be especially useful with wasm, because it allows the
Send bound to be turned on and off in one place.
@kevinmehall kevinmehall merged commit 3091921 into main Apr 12, 2025
8 checks passed
@kevinmehall kevinmehall deleted the async-rt branch April 12, 2025 19:45
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