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 Mar 31, 2024
1 parent 87fcf95 commit 01ff15a
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 01ff15a

Please sign in to comment.