Fix rust_doc_test linking with native libraries (#4080) rust_doc_test does not propagate native libraries into the final test command. This appears to only affect native libraries built by bazel rather than ones linked into crates by build.rs. This change only works with static libraries - dynamic libraries are much more complex. For example, using the jemalloc bazel module in tikv-jemalloc-sys. * Add -Clink-arg for all transitive non-crates * Add include_linker_inputs to collect all linker inputs * Collect linker roots from all libraries and additional inputs
This repository provides rules for building Rust projects with Bazel.
The fastest way to try this in an empty project is to click the green “Use this template” button on https://github.com/bazel-starters/rust.
General discussions and announcements take place in the GitHub Discussions, but there are additional places where community members gather to discuss rules_rust.
Please refer to the full documentation.