Skip to content

Support overriding generated Crate library targets - #223

Open
adincebic wants to merge 1 commit into
hermeticbuild:mainfrom
adincebic:adin/support-overriding
Open

Support overriding generated Crate library targets#223
adincebic wants to merge 1 commit into
hermeticbuild:mainfrom
adincebic:adin/support-overriding

Conversation

@adincebic

Copy link
Copy Markdown
Contributor

Adding override_target_lib annotation option to allow for replacement of generated library target. For example:

crate.annotation(
    crate = "itoa",
    override_target_lib = "//:my_itoa",
)

NOTE: This is supported by vanilla rules_rust though they allow for overriding other stuff besides library targets.

@adincebic

Copy link
Copy Markdown
Contributor Author

@cerisier @dzbarsky

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.

1 participant