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
Additional output during compilation #2561
Comments
You can use the Here is an example using libsqlite
This will allow you to set
|
This solution will not solve the problem of additional output.
Currently, I don't see any other way apart from explicitly adding the napi_def.tmp file as an output of the rust_shared_library rule in order to not break the remote execution system. |
Hello,
I use bazel to compile a project using Napi-rs.
This crate allow to generate automatically Typescript definition by setting an environment variable TYPE_DEF_TMP_PATH during compilation of rust package. It will create a file containing type definition at path specified in the env.
However, I haven't found an easy way to do this with the rules_rust.
For now, the best solution I've found is to patch these rules by adding an extra argument to explicitly add this output in the
rustc_compile_action
.Do you know of a better option?
If not, should I open a PR to propose this change, or is it too specific?
The text was updated successfully, but these errors were encountered: