From c1b34c13c54e6c8d718d2fe111a6c51ed3fa0671 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Fri, 29 Mar 2024 23:10:17 -0700 Subject: [PATCH] Use `.cargo/config.toml` instead of `.cargo/config` `.cargo/config` will be deprecated in Rust 1.78. `.cargo/config.toml` has been supported since Rust 1.38. https://github.com/rust-lang/cargo/pull/13349 --- overlay/mkcrate.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlay/mkcrate.nix b/overlay/mkcrate.nix index 2db61e23..fa69de9b 100644 --- a/overlay/mkcrate.nix +++ b/overlay/mkcrate.nix @@ -181,7 +181,7 @@ let configureCargo = '' mkdir -p .cargo - cat > .cargo/config <<'EOF' + cat > .cargo/config.toml <<'EOF' [target."${rustBuildTriple}"] linker = "${ccForBuild}" '' + optionalString (codegenOpts != null && codegenOpts ? "${rustBuildTriple}") (''