feature: introduce link_deps attribute for native library linkage #4024
All Vouch review confidence checks passed
Residual risk 0.12 = Change Risk (0.30) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.30 · 96 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.289
Diff Size
diff_size
0.274
Real PR Conversation Timeline
1 comments
"Review active on #4024"
general
weight: 0.35
krasimirgg
This change adds a dedicated link_deps attribute to Rust rules, allowing native symbols to be linked without exposing them as Rust crates.
Closes #4023
Key changes:
Added link_deps to _COMMON_ATTRS for CcInfo/CrateInfo targets.
Filtered link_deps out of rust_proc_macro to avoid transition complexity.
Implemented transform_link_deps to extract linkage context while hiding crate metadata.
Updated _assert_correct_dep_mapping to print a proactive warning for native libraries listed in deps.
This provides a cleaner separation of concerns between Rust modules and native code linkage while maintaining full backward compatibility for existing targets.