deps: drop cfg-if in favor of cfg_select #1818
All Vouch review confidence checks passed
Residual risk 0.08 = Change Risk (0.43) × (1 − Review Confidence (0.82)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 118 lines diff across 9 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.80 · 5 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
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
Diff Size
diff_size
0.286
Real PR Conversation Timeline
8 items
the documentation says the default arm is handled automatically so maybe just:
let client: Box<dyn Client> = cfg_select! {
feature = "keywrap-ttrpc" => {
info!("secure channel uses ttrpc");
Box::<ttrpc::Ttrpc>::default()
},
feature = "keywrap-grpc" => {
info!("secure channel uses gRPC");
Box::<grpc::Grpc>::default()
},
};
mod.rs has some cfg rules for this also...
nice improvement, thanks
Hi @mythi could you give a link to the doc you mentioend?
https://doc.rust-lang.org/stable/core/macro.cfg_select.html talks about "optional trailing _".
@mythi fixed. PTAL
Approved
LGTM
Waiting for MSRV discussion on Thursday
mythi
Xynnn007
cfg_select! is stable on the pinned 1.95 toolchain, so the direct cfg-if dependency is no longer needed.
Close #1815