Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider conditions to not include libstd in archives #1515

Open
sunshowers opened this issue May 23, 2024 · 0 comments
Open

Consider conditions to not include libstd in archives #1515

sunshowers opened this issue May 23, 2024 · 0 comments
Labels
A-reuse-build Issues around support for reusing builds

Comments

@sunshowers
Copy link
Member

With cargo-nextest 0.9.71, we now include libstd unconditionally in archives. This is done for two reasons:

  • proc-macro tests
  • -C prefer-dynamic

As of Rust 1.78, this makes archives:

  • around 4MB bigger without cross-compilation
  • around 8MB bigger with cross-compilation

This doesn't seem to be hugely relevant especially compared to the size of Rust test binaries themselves, but if this is a problem for you, please post in this issue.

I don't plan to work on fixing this, but one way we could address this is by adding config knobs. If this impacts you, thoughts on how to configure this, as well as concrete contributions in the form of PRs, would be welcome.

@sunshowers sunshowers added the A-reuse-build Issues around support for reusing builds label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-reuse-build Issues around support for reusing builds
Projects
None yet
Development

No branches or pull requests

1 participant