1 Commits

  • [codex] Preserve build-script dependencies in rules_rs annotations (#27322)
    ## Why
    
    Bazel compiles Cargo build scripts in the exec configuration. For
    `openssl-sys`, that means the target-specific optional `openssl-src`
    dependency can disappear when producing musl release binaries, even
    though the build script still needs the vendored source crate.
    
    ## What changed
    
    Patch `rules_rs` to expose its existing unconditional
    `build_script_deps` input through `crate.annotation`, then annotate
    `openssl-sys` with the pinned `openssl-src` target. Target-derived build
    dependencies continue to use the existing selected dependency path.
    
    ## Validation
    
    - `just bazel-lock-check`
    
    Stack: 2 of 6. Follows #27321.