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

[crate_universe] add an annotation to disable pipelining #1733

Conversation

Calsign
Copy link
Contributor

@Calsign Calsign commented Dec 29, 2022

The recent support for pipelined compilation (#1275) is great. There are some situations, however, where we need to disable pipelining for specific crates, e.g. #1584. This PR adds a crate annotation option to disable pipelining for rust_library targets generated by cargo_bazel. The alternatives would be patching the crate with the annotations system or disabling pipelining globally.

@Calsign Calsign changed the title [crate_universe] annotation disable pipelining [crate_universe] add an annotation for disable pipelining Dec 30, 2022
@Calsign Calsign changed the title [crate_universe] add an annotation for disable pipelining [crate_universe] add an annotation to disable pipelining Dec 30, 2022
@Calsign Calsign force-pushed the crate-universe-annotation-disable-pipelining branch from 1768e46 to a197786 Compare December 31, 2022 02:46
@illicitonion
Copy link
Collaborator

LGTM, thanks! Could you add a test to https://github.com/bazelbuild/rules_rust/blob/main/crate_universe/src/rendering.rs which shows this gets properly passed through the system? Then I'm happy to merge!

@Calsign Calsign force-pushed the crate-universe-annotation-disable-pipelining branch 3 times, most recently from 33fd72f to cca5c06 Compare January 14, 2023 08:38
The recent support for pipelined compilation (bazelbuild#1275) is great. There are some situations, however, where we need to disable pipelining for specific crates, e.g. bazelbuild#1584. This PR adds a crate annotation option to disable pipelining for rust_library targets generated by cargo_bazel.
@Calsign Calsign force-pushed the crate-universe-annotation-disable-pipelining branch 2 times, most recently from ac43c42 to dd68273 Compare January 26, 2023 05:54
@Calsign
Copy link
Contributor Author

Calsign commented Jan 26, 2023

@illicitonion I have added such a test, I think it should be good to merge now?

Copy link
Collaborator

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@illicitonion illicitonion merged commit ad01d1b into bazelbuild:main Jan 26, 2023
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

Successfully merging this pull request may close these issues.

2 participants