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 7e4e5e0 commit c1b34c1
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 @@ -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}") (''
Expand Down

0 comments on commit c1b34c1

Please sign in to comment.