I am trying to access the functions inside util.rs from run.rs, however rust tells me that it can't find it even though both of these files are under the same directory? How can I access util functions in run.rs?
On the other hand, util module is accessible if I use it in main.rs. Why is that?
declares a new module or source file. You can (and must) only do this once per source file in your entire project. If you do it in main.rs, you can import the module via use crate::util.