I tried coding the preferred solution from this SO answer from Shepmaster. It tooks me hours because our enterprise project is quite big and now I have a strange problem where a single type have 2 paths.
model::csdeconv::CSDModel
local_models::model::csdeconv::CSDModel
It's obvious that they are the same object, but I'm unable to tell the compiler that they are. In this specific case, the compiler tell me that I can't access private member of CSDModel
even if I'm in the file where it's defined, because I'm calling an utility function defined in the utility crate. I asked my colleague to create a toy example where we can see what I think is the same problem.
Is there a way to avoid that? Is it forbidden for the "utility" crate to call the other "real" crates? What's the problem here?