Dozens of Kilobytes of Cruft in Compilate

The following roughly finds fully qualified ASCII file pathes with suffix, if you replace any Rust compiled binary for FILE-NAME. Even an optimized and stripped release build contains dozens of kilobytes, many redundant and most of which have no use.

If not limiting the pattern to files (just use strings) you find even more cruft. (For lack of NUL string terminators, I duplicated the pattern, coz I want to stop at .rs, but not at .cargo or index.crates.io)

perl -nE '9 < length $& and say $& while /\/\w[-\/.\w]+?\.rs|\/\w[-\/.\w]+\.\w+/agi' FILE-NAME | sort

Is there any way of stripping this cruft out?

1 Like
4 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.