3 ms·
Bazel is generally much more useful when it can manage the entire build. https://github.com/bazelbuild/rules_rust https://github.com/bazelbuild/rules_rust imple
by wocram 6y ago
Bazel is generally much more useful when it can manage the entire build. https://github.com/bazelbuild/rules_rust https://github.com/bazelbuild/rules_rust implements this logic for rust. It calls rustc directly, without cargo for the build, and interacts with cargo through a shim to fetch/vendor dependencies.
Google uses various non-cargo build systems to build rust. I don't think Google is actually using bazel for this internally, eg. Fuchsia uses https://fuchsia.googlesource.com/fuchsia/+/master/third_party/rust_crates/ https://fuchsia.googlesource.com/fuchsia/+/master/third_part...