Rust Cargo init 发生签名验证失败

标签 rust

我尝试使用cargo init来初始化 cargo 管理系统。

但我看不到生成的 $HOME/.cargo 目录。

和外壳显示

macmatoMacBook-Air:rust kula$ cargo init
warning: signature verification failed for sources.json

macmatoMacBook-Air:rust kula$ cargo sync
error: No sources defined. You may wish to run "cargo init" then "cargo sync".

cargo 管理系统有什么变化吗?

我的操作系统是 mac osx 10.7

最佳答案

cargo 似乎使用了 GPG 并在输出中使用蹩脚的正则表达式。如果您的区域设置不是它所期望的,则会失败。这对我有用:

LC_MESSAGES=C cargo init

关于Rust Cargo init 发生签名验证失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9646490/

相关文章:

rust - Rust 中的引用文献

rust - 有组织 Rust 项目的传统方式吗?

sockets - UdpSocket.send_to 失败,返回 "invalid argument"

sqlite - Rust Diesel 未构建错误使用未声明的 crate 或模块

formatting - 如何打印具有所有可用精度的 Rust float ?

rust - 参数类型可能活得不够长?

rust - 无法推断在关联函数上声明的类型参数 `I`的类型

rust - 如何对包装字符串的枚举变体进行模式匹配?

performance - 为什么 Rust 中的枚举值绑定(bind)这么慢?

rust - 当我可以绑定(bind)可变变量时,为什么还需要重新绑定(bind)/隐藏?