Skip to content

rust: docs aspect loads on stock rules_rust (part of #15298) - #15312

Merged
TrapsterDK merged 1 commit into
mainfrom
consumer-rust-docs-stock
Nov 30, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
consumer-rust-docs-stock

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

A consumer that adds rules_dx without the rules_dx rules_rust override failed to load @rules_dx//rust:defs.bzl, because the docs aspect loaded rustdoc_toolchain.bzl, which only the patched rules_rust has.

The aspect now uses the rustdoc toolchain type when rules_rust has one, and the stock rustdoc_compile_action signature otherwise. The removal trigger is bazelbuild/rules_rust#4354.

Adds the harness case a_consumer_without_the_rules_rust_override_loads_the_rust_rules.

Tests:

  • tools/dx test //tools/testing:nested_bazel_harness_test -- --jobs=4 --test_tag_filters= --test_filter=a_consumer_without_the_rules_rust_override_loads_the_rust_rules: passes. The harness cache set already has rules_rust-0.75.0.tar.gz.
  • tools/dx check --apply --affected: Bazel ran out of memory on the shared host and nothing was changed. The full gate was left to CI.

Part of #15298.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hxb7tMzRqzVaKmAvVT

A consumer that adds rules_dx without our rules_rust override failed to
load @rules_dx//rust:defs.bzl, because the docs aspect loaded
rustdoc_toolchain.bzl, which only the patched rules_rust has. The aspect
now uses the rustdoc toolchain type when rules_rust has one and the stock
rustdoc_compile_action signature otherwise.
@TrapsterDK
TrapsterDK merged commit 919d265 into main Nov 30, 2026
8 of 14 checks passed
@TrapsterDK
TrapsterDK deleted the consumer-rust-docs-stock branch November 30, 2026 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant