-
Hello! I'm working on a project that has a few library crates linked to a binary crate in the same repository. The library crates use diesel and store data in postgres. I'm able to run the binary crate without any issues, but when I try to import the library crates into another repository they start to throw weird errors that don't show up when I run the binary crate. An example is:
I tried implementing QueryId but this error still did not go away. I'm wondering how I can go about properly exporting the library crates so I don't get this issue. Also, if there is a way to export the migrations folder too so that a downstream binary crate can run it, please let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
I fear it's not possible to help you based on the provided information. You need to provide a reproducible example for your problem so that someone can else can see what's the problem there. Otherwise you can try to use |
Beta Was this translation helpful? Give feedback.
@weiznich you can ignore the above message, the error goes away when I add these dependencies in the crate Cargo.toml file. Earlier, I was adding them to the workspace Cargo.toml file.