-
Notifications
You must be signed in to change notification settings - Fork 516
Closed
Description
Minimal repro case with a potential (but ugly) fix:
The linked branch does the following changes:
- Add a genrule call that trivially creates a file containing a string.
- The goal is to
include_str!this file inhello_world.rs. Code for this is here. For this to ever work, the genfile is made adatadependency of therust_binary. - I could not pull this off without exposing bazel's
ctx.bin_dirandctx.genfiles_diras environment variables. This is still ugly, since it includes "external", so the file needs to have the context that it is embedded as an external workspace.
Ideally, I would just want to include_str!("message.string"); or include_str!("../message.string");, but both do not currently work. Is there a better way or solution to this issue? Should my repro case become a patch?
Metadata
Metadata
Assignees
Labels
No labels