You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to set up a simple Rust build for a small project. I tried following the instructions in the README, but no matter what I do, Bazel doesn't seem to like it.
When installing cargo-raze and running it "manually":
When I try to run any Bazel command, it complains that it can't find @bazel_skylib. I tried adding it to my WORKSPACE manually, and helps it get a little further along, but then when I try to add a dependency to any of my targets, attempting to build that target results in Bazel complaining it can't find its repository (i.e. @raze__whatever_0_1_2). This error happens both when using aliases and when using (the experimental) all_crate_deps().
When attempting to run cargo-raze through Bazel:
Trying to bazel run @cargo_raze//:raze it complains about @bazel_skylib again. Adding that to my WORKSPACE manually causes it to complaining about @rules_foreign_cc (similar to issue #423).
I also tried to build some examples from the examples folder, but:
When running cargo-raze in any of the example folders, it doesn't appear to do anything, and no new files are created.
Attempting to build an example fails with error: error: linking with external/local_config_cc/cc_wrapper.sh failed: exit code: 1
(As a side note, it is a little unclear to me how the examples work - they contain some things like cargo folders and various .bzl and BUILD/BUILD.bazel files, and it is not clear which of those are supposed to be authored by the "user" and which should be generated by cargo-raze.)
Hi all,
I am trying to set up a simple Rust build for a small project. I tried following the instructions in the README, but no matter what I do, Bazel doesn't seem to like it.
When installing cargo-raze and running it "manually":
When I try to run any Bazel command, it complains that it can't find
@bazel_skylib
. I tried adding it to my WORKSPACE manually, and helps it get a little further along, but then when I try to add a dependency to any of my targets, attempting to build that target results in Bazel complaining it can't find its repository (i.e.@raze__whatever_0_1_2
). This error happens both when using aliases and when using (the experimental)all_crate_deps()
.When attempting to run cargo-raze through Bazel:
Trying to
bazel run @cargo_raze//:raze
it complains about@bazel_skylib
again. Adding that to my WORKSPACE manually causes it to complaining about@rules_foreign_cc
(similar to issue #423).I also tried to build some examples from the examples folder, but:
error: linking with
external/local_config_cc/cc_wrapper.shfailed: exit code: 1
(As a side note, it is a little unclear to me how the examples work - they contain some things like
cargo
folders and various.bzl
andBUILD
/BUILD.bazel
files, and it is not clear which of those are supposed to be authored by the "user" and which should be generated by cargo-raze.)Platform: macOS Monterey (Intel)
Bazel version: 4.2.1
"Installed" cargo-raze version: 0.12.0
"Bazel" cargo-raze version: 0.12.0, 0.14.1
The text was updated successfully, but these errors were encountered: