Skip to content

How to reference types in other crates inside library!? #39

@arthrarnld

Description

@arthrarnld

I'm trying to write a library! declaration along these lines:

reflect::library!{
    extern crate anyhow {
        type Result;
    }

    extern crate my_crate {
        trait MyTrait {
            fn trait_fn(&self) -> anyhow::Result;
        }
    }
}

But the macro doesn't seem to support the anyhow::Result path. Since the README mentions "There may be additional extern crate blocks here if we need to use types from outside the standard library", I'm wondering if I'm missing something or if this is not supported yet. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions