rust - cargo 未能为rustc_version选择版本

标签 rust cargo rustup

我的项目在其他机器上可以正常编译,但是在新的具有新的rustup的机器上,我得到了错误

$ cargo build
    Updating crates.io index
error: failed to select a version for the requirement `rustc_version = "^0.1"`
candidate versions found which didn't match: 0.3.3, 0.3.2, 0.3.1, ...
location searched: crates.io index
这对我来说毫无意义。为什么0.3不匹配^ 0.1?

最佳答案

0.2之前的rustc_version crate 的所有版本均为yanked。那和cargo considers changes to the minor before 1.0 to be incompatible
如果rustc_version文件中的0.2版之前的版本Cargo.lock或已被下载并缓存,则它可能在其他计算机上工作。

关于rust - cargo 未能为rustc_version选择版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66333624/

相关文章:

multithreading - Rust-在多个线程中写入向量的索引

rust - 在 Rust 闭包中重用绑定(bind)

tomcat - 在远程服务器上部署 war + conf( cargo ?)

maven-2 - 如何使用 cargo :start using maven部署特定的子项目

api - 我正在尝试通过 Rust 中的 OpenWeather API 获取数据,但我想我正面临一些关于解析的问题

rust - 为什么 impl 和普通函数之间的可变引用不一致?

maven - Jenkins + maven cargo + 2 tomcats

rust - 收到错误 “some components unavailable for target i386-apple-ios/armv7s-apple-ios”时,如何更新稳定的工具链?

rust - 运行 'rustup doc' 时拒绝访问

rust - 为什么不鼓励接受引用 &String、&Vec 或 &Box 作为函数参数?