Do others don't mind Rust compiler stores full paths to original sources files used in release version of target binary? There is only very limited option to substitute leading part of paths with remap-path-prefix based on string constant but rest of path information is still leaked and only increases binary size with useless junk. In environments where release binaries are deployed, there are no project sources available anyway so it makes no sense even for debugging purposes.
Can we expect in some foreseeable future it will land in at least nightly version of rust? You know, Go has -trimpath build option and it comes from Google …
I personally don't mind because I don't compile in an environment with any personal information.
Depending on why you're concerned about paths leaking, you should keep in mind that Rust development is a "download unvetted programs from the internet and run them as the current user" endeavor (once you add dependencies).
Welcome to the forum! I went ahead and marked the previous reply as the solution, since you said it solved your problem. In the future you can do this by clicking the check mark at the bottom of the reply. This lets everyone know that the problem is solved, and makes it easier for others to find the solution when searching.