Skip to content

Cannot use macros when crate is renamed #2099

Closed
@That3Percent

Description

@That3Percent

When the futures crate is renamed:

futures03 = { version = "0.3.1", package = "futures" }

Macros like try_join cannot find the crate.
Eg:

async fn test() {
    futures03::try_join!()
}

fails with

failed to resolve: could not find `futures` in `{{root}}`

This impedes migration from version 0.1 to version 0.3, since one of the two futures crates must be renamed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-macroArea: macro related

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions