Skip to content
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

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

Open
arthrarnld opened this issue Sep 1, 2024 · 0 comments
Open

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

arthrarnld opened this issue Sep 1, 2024 · 0 comments

Comments

@arthrarnld
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant