I just want to say that M-x toggle-uniquify-buffer-names is your friend here.
Oh and since I know you use emacs, M-x rust-promote-module-into-dir.
(This post is not meant to invalidate the broader point, since some people persist in not using emacs.)