From 01ff15a17a8b7481e3291a995d90f891cf3ed2c5 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 fa64f849..adbe1ee5 100644 --- a/overlay/mkcrate.nix +++ b/overlay/mkcrate.nix @@ -177,7 +177,7 @@ let configureCargo = '' mkdir -p .cargo - cat > .cargo/config <<'EOF' + cat > .cargo/config.toml <<'EOF' [target."${rustBuildTriple}"] linker = "${ccForBuild}" '' + optionalString (codegenOpts != null && codegenOpts ? "${rustBuildTriple}") (''