Unverified Commit 7379d27c authored by Emily's avatar Emily Committed by GitHub
Browse files

buildRustPackage: warn on explicit useFetchCargoVendor (#428565)

parents f63f8b23 8e59ce1e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -72,7 +72,11 @@ lib.extendMkDerivation {
    }@args:

    assert lib.assertMsg useFetchCargoVendor
      "buildRustPackage: `useFetchCargoVendor` is non‐optional and enabled by default as of 25.05";
      "buildRustPackage: `useFetchCargoVendor` is non‐optional and enabled by default as of 25.05, remove it";

    assert lib.warnIf (args ? useFetchCargoVendor)
      "buildRustPackage: `useFetchCargoVendor` is non‐optional and enabled by default as of 25.05, remove it"
      true;

    lib.optionalAttrs (stdenv.hostPlatform.isDarwin && buildType == "debug") {
      RUSTFLAGS = "-C split-debuginfo=packed " + (args.RUSTFLAGS or "");