I have a file structure looking somewhat like the following:
src/
--clients/
----queue_client/
------mod.rs
--data_evaluator/
----data_evaluator.rs
In data_evaluator, I want to use the queue_client
module, but when I do mod queue_client
in data_evaluator.rs
- I get the following error - File not found for module queue_client
. It only finds the module if I move it into the data_evaluator
folder.
My question is, how do I correctly use modules that are outside of the consumer code's directory? Apologies if there is an easy way to do this, I did try searching for quite a while and couldn't find a way.