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

Behavior in multi-crate projects #50

Open
mainrs opened this issue Aug 9, 2022 · 1 comment
Open

Behavior in multi-crate projects #50

mainrs opened this issue Aug 9, 2022 · 1 comment

Comments

@mainrs
Copy link

mainrs commented Aug 9, 2022

Hello!

Is inventory supposed to work when using a multi-crate structure? I sketched out my project structure here: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=9da89efa993ce084845d5d7417cac9ae

I use Rust 1.62.1 on Linux. I ran cargo run --release -p cli.

@korrat
Copy link

korrat commented Dec 22, 2022

I've had a similar problem with a multi-crate setup. What worked for me was adding extern crate declarations for the plugin crates (IMPL1/IPML2 in your crates) to the consumer (LIB for you).

Does that work?

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

2 participants