rules_rust
rules_rust copied to clipboard
Rust rules for Bazel
This rust project https://github.com/swc-project/swc has a Cargo.lock file in the root, then a tree of Cargo.toml files for all the crates it builds. https://gist.github.com/alexeagle/b0a290dd09860cf2db04c6f13025d0aa shows how I've tried to fetch...
This PR adds support for using cc_common.link to link rust_binary-es and rust_test-s, following https://github.com/bazelbuild/rules_rust/issues/1488: * a new boolean build setting `--//rules_rust/rust/settings:experimental_use_cc_common_link`, defaulting to false, * a new rust_toolchain label attribute...
This would finally conclude https://github.com/bazelbuild/rules_rust/issues/704 which actually communicates the `rust-analyzer` rules are non-experimental.
If I use the following snippet from https://github.com/bazelbuild/rules_rust/releases/tag/0.8.1: ```txt load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") http_archive( name = "rules_rust", sha256 = "05e15e536cc1e5fd7b395d044fc2dabf73d2b27622fbc10504b7e48219bb09bc", urls = [ "https://mirror.bazel.build/github.com/bazelbuild/rules_rust/releases/download/0.8.1/rules_rust-v0.8.1.tar.gz", "https://github.com/bazelbuild/rules_rust/releases/download/0.8.1/rules_rust-v0.8.1.tar.gz", ], ) ``` I see the following...
This PR adds a `capture_output` attr to the `rust_doc` rule, which if set to `True` will redirect the output of `stderr` into a file with the suffix of `.rustdoc.out`. Adding...
Hopefully resolves https://github.com/bazelbuild/rules_rust/issues/266 I'm open to input from maintainers on how to do this.
FR: have rustc_compile_action return a dictionary to more easily distinguish the returned providers
With @scentini we were thinking this could be an improvement. This will be useful to be able to distinguish between the returned providers in client code.
We would like to add support to rules_rust for linking rust binaries via the [cc_common.link](https://docs.bazel.build/versions/main/skylark/lib/cc_common.html) Bazel mechanism. This feature would allow for better cross-language interoperability and make it easier to...
allocator_library is now exposed at a higher level to support this. This required swapping the order of libstd and allocator_library in the link. allocator_library is moving earlier, so this should...