Skip to content

Remove async-std-comp from default features. - #56

Merged
hexcowboy merged 1 commit into
hexcowboy:mainfrom
maxnoel:remove-default-asyncstd
Oct 27, 2026
Merged

hexcowboy merged 1 commit into
hexcowboy:mainfrom
maxnoel:remove-default-asyncstd

Conversation

@maxnoel

@maxnoel maxnoel commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

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

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 hexcowboy#55
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