-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose async-attributes macros behind feature flag #237
Comments
Okay so this is terrible, but thanks to async-rs/async-attributes#8 we can properly render the |
Oops, I meant to post all these screenshots on the PR #238. Sorry sorry. |
Should this also be behind the If the motivation for another feature flag is reducing compilation times, I wonder if we should just embrace |
@stjepang For me
It would certainly make things easier; in particular #225 could greatly be simplified. And our ideas around random delays / tracing would be furthered by it. So not sure; we could consider it? But that feels like a larger discussion than what we're talking about here. And even then having this live behind a flag may still be desirable. |
Actually thinking more about it; I don't think people care about splitting lang polyfills out into separate features. If anything feature flags are kind of annoying. I think you're right, and this flag should only exist to guard pulling in the |
I'm not convinced of exposing these features through the async-std library. I don't quite see the argument for just deploying one single library with multiple features. While it's desirable to ship e.g. an official test macro, it also leads to the jarring situation where alternative test frameworks need to deactivate such a feature. |
Can you share more about this? This is the first time I'm hearing of it. |
@skade Could you expand on the problem? It'd be nice to have this behind the |
The docs of
I understand the second point but the first one is no longer true with the re-export, is it? Even with the feature-flag, the attributes are now part of the public API of It feels like we could just merge those macros into |
For applications it's generally useful to have access to the attributes as defined in
async-attributes
. Being able to install a single dependency seems quite desirable.Implementation
I propose we expose these attributes from the root of the crate, relying on a feature flag. As for the flag name, there's a few options. But the one I think I prefer is
"bin"
to indicate this should be used for binaries only.The text was updated successfully, but these errors were encountered: