Skip to content

Make runtime selection explicit and update dependencies - #57

Merged
hexcowboy merged 2 commits into
mainfrom
codex/explicit-runtime-support
Oct 27, 2026
Merged

hexcowboy merged 2 commits into
mainfrom
codex/explicit-runtime-support

Conversation

@hexcowboy

@hexcowboy hexcowboy commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

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.

maxnoel and others added 2 commits October 26, 2026 15:39
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
@hexcowboy
hexcowboy merged commit bb1444e into main Oct 27, 2026
14 checks passed
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.

async-std-comp shouldn't be in default features

2 participants