#modules
6 messages · Page 1 of 1 (latest)
if you just wanted it visible to crate::functions, you could write pub(super) fn meow()
pub(in crate::functions) fn meow() also works if you want to write the whole path out
crate is your entire binary or library
yes, your main.rs and all the modules it depends on would be a crate. Your Cargo.toml is used to define the crate. Usually there is just one crate per src directory
yeah, there are default values that aren't listed that tell cargo to look for a binary at src/main.rs and a library at src/lib.rs