Skip to content
Discussion options

You must be logged in to vote

It's to ensure that downstream crates do not enable it without the end-users knowledge. With a cargo feature, random third party librarys can just enable it without you even having to know about it. Whereas with --cfg tokio_unstable, the end-user of the library has to explicitly decide to enable it.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ADD-SP
Comment options

ADD-SP Dec 5, 2025
Collaborator

@BatmanAoD
Comment options

Answer selected by BatmanAoD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants