我正在研究这个仓库 https://github.com/chunjiw/oxd。它在 M2 笔记本电脑上的 MacOS 上构建没有问题;但是当我尝试在 Debian 桌面上构建它时,它显示以下错误:
error[E0554]: `#![feature]` may not be used on the stable release channel
--> /home/username/.cargo/registry/src/github.com-1ecc6299db9ec823/thiserror-1.0.37/src/lib.rs:238:34
|
238 | #![cfg_attr(provide_any, feature(provide_any))]
| ^^^^^^^^^^^
For more information about this error, try `rustc --explain E0554`.
error: could not compile `thiserror` due to previous error
所以我尝试在 Debian 上使用 nightly buildrustup default nightly
,然后构建就没有错误。
我很困惑,因为这个错误是一个很受欢迎的错误。尽管这个错误箱不能与稳定的 Rust 一起工作,但它确实具有不稳定的功能吗?这是否意味着大多数 Rust 开发人员使用夜间版本而不是稳定版本?
但为什么它在 Mac 上对我有效呢?我很确定我在 Mac 上有稳定版本。
一定有什么我错过了:) 提前谢谢你!
正如@SirDarius 上面评论的那样,只需删除target
目录和箱子重建没有问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)