Provide defaults for optional CrateInfo fields in _create_crate_info (#4322) Currently, `_create_crate_info` only provides defaults for a small subset of the fields on the `CrateInfo` provider. If custom rules instantiate `CrateInfo` using only the fields they care about, they are susceptible to sudden runtime `AttributeError` crashes if `rules_rust` internal logic is updated to unconditionally access a field that wasn't previously required. This PR adds defaults for all remaining non-essential fields in `_create_crate_info` and the only fields left without defaults are the strictly required semantic fields (`name` and `type`). --------- Signed-off-by: Taylor Edwards <tayloredwards@google.com>
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.