I've setup my folder like this:
src/lib.rs
src/foo/mod.rs
src/foo/bar.rs
src/foo/baz.rs
lib.rs has "pub mod foo"
foo/mod.rs has "pub mod bar" and "pub mod baz"
However - when I try to use something from baz
from within bar
I get an error. I tried use ::baz
, mod baz
, etc. but couldn't get it to work.
How can I use the things defined in baz, from within bar?