Skip to content

Commit

Permalink
Use .cargo/config.toml instead of .cargo/config
Browse files Browse the repository at this point in the history
`.cargo/config` will be deprecated in Rust 1.78.

`.cargo/config.toml` has been supported since Rust 1.38.

rust-lang/cargo#13349
  • Loading branch information
proski committed Apr 3, 2024
1 parent da5f5d7 commit 760f25d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overlay/mkcrate.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}") (''
Expand Down

0 comments on commit 760f25d

Please sign in to comment.