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

Remove transition from binary/test/bench rules, add to grpc/proto #309

Merged
merged 1 commit into from
Apr 21, 2020

Conversation

dfreese
Copy link
Collaborator

@dfreese dfreese commented Apr 20, 2020

This mostly reverts commit a1d8936, removing the
proc_macro_host_transition from most rules. This fixes #305, by no
longer having a transition on rust_binary. It still solves #300 by
adding this transition to rust_proto_library and rust_grpc_library.
Those rules are meant to mirror rust_library, so they should share the
same cfg values. Sharing the same configuration means that
rust_proto_library or rust_grpc_library can be dependencies to
rust_library or rust_binary and not cause another configuration of the
library to be generated.

The example introduced by #301 is moved in this commit into a subfolder
to provide a more clear directory structure.

This mostly reverts commit a1d8936, removing the
proc_macro_host_transition from most rules.  This fixes bazelbuild#305, by no
longer having a transition on rust_binary.  It still solves bazelbuild#300 by
adding this transition to rust_proto_library and rust_grpc_library.
Those rules are meant to mirror rust_library, so they should share the
same cfg values.  Sharing the same configuration means that
rust_proto_library or rust_grpc_library can be dependencies to
rust_library or rust_binary and not cause another configuration of the
library to be generated.

The example introduced by bazelbuild#301 is moved in this commit into a subfolder
to provide a more clear directory structure.
@damienmg
Copy link
Collaborator

Thanks for fixing that, awesome!

@damienmg damienmg merged commit e285f2b into bazelbuild:master Apr 21, 2020
@dfreese dfreese deleted the transition branch April 21, 2020 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rust_binary does not produce link in bazel-bin
3 participants