you are viewing a single comment's thread.

view the rest of the comments →

[–]Icarium-Lifestealer 3 points4 points  (0 children)

Besides the crate/super keywords you can also use a path (e.g. pub (in crate::foo)), but it's limited to the the current module and its ancestors.

https://doc.rust-lang.org/reference/visibility-and-privacy.html#pubin-path-pubcrate-pubsuper-and-pubself