ci(run): install codegen-cli with cargo-binstall#4394
ci(run): install codegen-cli with cargo-binstall#4394rami3l merged 1 commit intorust-lang:masterfrom
codegen-cli with cargo-binstall#4394Conversation
|
One very weird (although not directly related to the optimization this PR is doing) thing is that Furthermore, the error message always says: error: failed to compile `bindgen-cli v0.72.0`, intermediate artifacts can be found at `/checkout/target`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
Caused by:
cannot produce proc-macro for `clap_derive v4.1.0` as the target `x86_64-unknown-linux-gnu` does not support these crate typesWe do know that PS: @0xPoe have you seen this error message before? |
|
Not sure where the issue is, but maybe using e.g. rust-cache could be an alternative zo cargo-binstall. |
@Kobzol Thanks for the reply! To be clear, however, the error I've mentioned above seems to be pre-existing and not directly related to this patch, as we will still need to get a recent I'll be merging this patch first (since we need that installation anyway), and let's move the rest of the discussion to #4396. |
56319a9 to
856434e
Compare
This pull request updates the installation process for
bindgen-cliin theci/run.bashfile to usecargo-binstall, which provides a faster and more efficient installation method.This is necessary because since https://github.com/rust-lang/rust-bindgen/releases/tag/v0.72.0, the original quick installation script is no longer present.