Export rust_lto_flag from //rust:defs.bzl (#4338) Exports `rust_lto_flag` from `//rust:defs.bzl`, next to the other flag rules, so that custom toolchains can set the public `lto` attribute of `rust_toolchain` without loading `//rust/private:lto.bzl`. Also fixes the doc string of the `lto` attribute and adds a toolchain test that uses a custom `rust_lto_flag`. `RustLtoInfo` stays private. Fixes #4337
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.