< 返回版块

orator1 发表于 2021-03-22 12:11

Tags:Rust,Cargo

在Windows下安装了Rust成功,但是 Cargo new 的时候,出现了以下问题:

C:\Users\Administrator\Desktop>cargo new hello error: Failed to create package hello at C:\Users\Administrator\Desktop\hello

Caused by: could not load Cargo configuration

Caused by: could not parse TOML configuration in C:\Users\Administrator\.cargo\config

Caused by: could not parse input as TOML

Caused by: redefinition of table source.crates-io for key source.crates-io at line 10 column 1

Cargo -V的版本是:cargo 1.50.0 (f04e7fab7 2021-02-04),搜了很久没找到答案,请帮忙下,谢谢!

评论区

写评论
作者 orator1 2021-03-22 12:17

问题解决了,是我config配置里的问题

1 共 1 条评论, 1 页