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

Allow building binaries in metadata-only mode #3017

Open
reinerp opened this issue Nov 22, 2024 · 0 comments
Open

Allow building binaries in metadata-only mode #3017

reinerp opened this issue Nov 22, 2024 · 0 comments

Comments

@reinerp
Copy link

reinerp commented Nov 22, 2024

The approach described in #1649 is a great way to get an equivalent of fast cargo check on rust_library targets. However, on rust_binary targets it runs codegen too, not just generating metadata.

This seems to be because the rust_library target specifies a metadata output (

metadata = rust_metadata,
) but the rust_binary target does not (
edition = get_edition(ctx.attr, toolchain, ctx.label),
).

Would it be possible to produce a metadata output from rust_binary too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant