Repository navigation
Make runtime selection explicit and update dependencies - #57
Merged
Merged
Conversation
In a project that supports multiple async runtimes, enabling one in the default features makes it difficult to depend on the project. Prior to this change, any project that uses `rslock` but wishes to use `tokio` and not `async-std` must depend on `rslock` with `default_features = false`, _and so must every transitive dependency of the project that depends on `rslock`_ too. If any of the transitive dependencies omits the `default_features = false`, there's no way out because of the way feature unification works. This can result in weird errors (see redis-rs/redis-rs#2470 ). Fixes #55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Preserves maxnoel’s commit from #56, adds explicit Tokio/Smol selection, decouples cluster support, and updates dependencies, examples, docs, and CI. Fixes Tokio-dependent retry timing for Smol.
Validated with Docker tests across both runtimes and cluster combinations, feature-powerset builds, Clippy, and docs.
Closes #55; supersedes #56. Release together with the stacked 0.10.0 API change.