Conversation
this has been an issue for a long time http://github.com/bazelbuild/rules_rust/pull/1315 and is still an issue Signed-off-by: Ryan Northey <ryan@synca.io>
9390587 to
9a4ef4a
Compare
|
@UebelAndre could we please, please get this in? We (Proxy-Wasm Rust SDK, Proxy-Wasm C++ Host, Envoy) have been carrying this patch in every repo for the past 3+ years... While it's not a perfect solution, it really has no downsides, since it only affects |
|
Sorry for the delay here, can someone fill me in on the details of this change? What is the failure and what does this solve? |
|
@UebelAndre Wasm modules are the final product, so we're using Building $ bazel build --platforms=@rules_rust//rust/platform:wasi //:http_auth_random
ERROR: //BUILD:42:12: in rust_binary rule //:http_auth_random:
.../external/rules_rust+/rust/private/rustc.bzl:1699:20: The rule 'rust_binary' is executable. It needs to create an executable File and pass it as the 'executable' parameter to the DefaultInfo it returns.
ERROR: //BUILD:42:12: Analysis of target '//:http_auth_random' (config: d0d6886) failed Bulding $ bazel build --platforms=@rules_rust//rust/platform:wasi //:http_auth_random
ERROR: //BUILD:42:12: in rust_binary rule //:http_auth_random:
.../external/rules_rust+/rust/private/rust.bzl:251:5: rule advertised the 'CrateInfo' provider, but this provider was not among those returned
ERROR: //BUILD:42:12: Analysis of target '//:http_auth_random' (config: d0d6886) failedBuilding $ bazel build --platforms=@rules_rust//rust/platform:wasi //:http_auth_random
INFO: Analyzed target //:http_auth_random (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
Target //:http_auth_random up-to-date:
bazel-bin/http_auth_random.wasm(You can replicate this in https://github.com/proxy-wasm/proxy-wasm-rust-sdk by commenting out the The timeline is:
There is some prior discussion in comments in those issues, as well as in #771. |
this has been an issue for a long time
http://github.com/bazelbuild/rules_rust/pull/1315
and is still an issue