rules/rust/workspace_expansion.js
Developer reference: this page includes exported implementation details. BUILD authors should prefer the User API reference.
RUST_CORES
const RUST_CORES
Undocumented.
CARGO_JOBS_ENV
const CARGO_JOBS_ENV
Undocumented.
cargoWorkspaceExpansion()
cargoWorkspaceExpansion(workspaceRootRelative, toolchainSpec)
One expand() per real Cargo workspace root, keyed by crate name — the first multi-key expand() in this repo (rules/odin's is single-key). Every workspace member's [LINT]/[TEST] root shares one workspace-wide cargo clippy/test-build run; expansion.get(crateName, workflow) resolves one crate's own attributed result, expansion.all(workflow) resolves every member's. (as returned by workspace_closure.js's workspaceRootRelativeFor()), "." for the repo root itself. linkerHandles}` — see //rules/rust's cargoPackage(), which builds this bridge.
| Parameter | Type | Description |
|---|---|---|
| workspaceRootRelative | string | Workspace-relative root directory |
| toolchainSpec | object | `{toolchain, legacyToolchainHandle, |