Skip to content

transition_dep doesn't have pulls_and_pushes_plugins as a setting #1071

@DirectXMan12

Description

@DirectXMan12

i've got the following setup: first party code compiles with a certain set of common cflags, while dependency code compiles with a different set of cflags.

to accomplish this without needing to manually set cflags everywhere, i have a constraint that i apply to dependencies, and a transition that transitions to having that constraint. to apply that transition (since almost nothing, including rust_library, supports incoming_transition yet) i have an alias-like rule that just has an outgoing transition_dep field (instead of normal dep for alias).

however, with rust using plugins for proc macros, i've run into a problem -- transition_dep doesn't support pulls_and_pushes_plugins, so the rust proc macro building code errors out, and i can't seem to figure out a workaround.

a) it seems to me like maybe transition_dep should have the plugin propagation settings just like normal deps
b) do y'all have a suggested workaround here? am i holding something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions