Skip to content

Need to add a use futures; statement to object derive w/ async feature. #534

Closed
@thedodd

Description

@thedodd

Describe the bug
On the master branch, using the async feature, use of the derive macro #[juniper::graphql_object(...)] will cause a compilation error stating that futures is not in scope. Looks like this just needs a use futures; somewhere in the macro.

To Reproduce
Just pop a #[juniper::graphql_object(...)] on any valid struct with the async feature enabled, and don't use futures; anywhere in the module.

Expected behavior
Pretty common issue in macros. Just need to add a use statement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area::asyncRelated to async/.await functionalitybugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions