Skip to content

Expose async-attributes macros behind feature flag #237

Closed
@yoshuawuyts

Description

@yoshuawuyts

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.

#[cfg(feature = "bin")]
pub use async_attributes::*;

Metadata

Metadata

Assignees

No one assigned

    Labels

    api designOpen design questions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions