[26.05] clash-rs: fix build with Rust ≥1.95 (#525460)

This commit is contained in:
yaya
2026-05-29 07:44:45 +00:00
committed by GitHub

View File

@@ -33,8 +33,11 @@ rustPlatform.buildRustPackage (finalAttrs: {
];
env = {
# requires features: sync_unsafe_cell, unbounded_shifts, let_chains, ip
# requires nightly features: sync_unsafe_cell, unbounded_shifts, let_chains, ip
RUSTC_BOOTSTRAP = 1;
# if_let_guard is stable since Rust 1.95.0, but some deps still carry
# the stale #![feature(if_let_guard)] attribute.
RUSTFLAGS = "-A stable-features";
};
buildFeatures = [ "plus" ];