Skip to content

rustc is distributed with unnecessary? procedural macros ~60 MB #80294

Closed
@tmiasko

Description

@tmiasko
$ cd ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib
$ ls -s -S --si 
total 282M
121M librustc_driver-54c3daf069bcd3f6.so
 94M libLLVM-11-rust-1.50.0-nightly.so
 15M libserde_derive-026483cb77a7c305.so
 15M librustc_macros-5f0ec4a119c6ac86.so
 15M libchalk_derive-0685d79833dc9b2b.so
 14M libtracing_attributes-e4be92c35ab2a33b.so
8,3M libstd-25c6acf8063a3802.so
2,6M libtest-57470d2aa8f7aa83.so
4,1k rustlib/

$ rm libserde_derive-*.so librustc_macros-*.so libchalk_derive-*.so libtracing_attributes-*.so
$ ls -s -S --si
total 224M
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementCategory: An issue proposing an enhancement or a PR with one.I-heavyIssue: Problems and improvements with respect to binary size of generated code.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.T-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions