[英]How to build a dependency with a different version of the Rust compiler?
I've got a Rust project I build with the 1.33 tool chain. 我有一个使用1.33工具链构建的Rust项目。 I need to add a dependency on a crate that can only be built with Rust nightly, how can I specify in the dependencies it should be built with nightly?
我需要在只能通过Rust每晚构建的板条箱上添加依赖关系,如何在依赖关系中指定应该每晚构建的板条箱?
You cannot. 你不能。 Rust does not have a stable ABI and it is not possible to mix crates built with different versions of the compiler within the same project.
Rust没有稳定的ABI,并且不可能在同一项目中混合使用不同版本的编译器构建的板条箱。 As of 2019, there is no plan to stabilize the ABI.
截至2019年,没有计划稳定ABI。
You must compile the entire project using a nightly compiler which you can do using rustup . 您必须使用每晚编译器编译整个项目,而您可以使用rustup进行编译 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.