inventory icon indicating copy to clipboard operation
inventory copied to clipboard

Behavior in multi-crate projects

Open mainrs opened this issue 2 years ago • 1 comments

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.

mainrs avatar Aug 09 '22 19:08 mainrs

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?

korrat avatar Dec 22 '22 09:12 korrat