rtk: fix build with Rust 1.97 (#545266)

This commit is contained in:
Gaétan Lepage
2026-07-24 22:24:13 +00:00
committed by GitHub
+6
View File
@@ -24,6 +24,12 @@ rustPlatform.buildRustPackage (finalAttrs: {
cargoHash = "sha256-XKUKdhxfnwUCOx9slqx4oUFa09HcosPLVh5Xkh87oSk=";
# Rust 1.97's dead_code_pub_in_binary analysis exposes dead code in test builds.
# Fixed upstream on develop after 0.43.0:
# https://github.com/rtk-ai/rtk/commit/73b8cb3069297374a3de58552b9fe4aa2cda3a41
# TODO: Remove RUSTFLAGS when updating rtk to the next release.
env.RUSTFLAGS = "--cap-lints warn";
nativeBuildInputs = [
makeWrapper
pkg-config