rust - 无法安装Racer : "pub(restricted) syntax is experimental (see issue #32409)"

标签 rust package syntax-error atom-editor rust-cargo

Racer 本身的源代码似乎存在一些错误,无法安装。我尝试通过 cargo install racer 进行安装,并尝试从 Racer 的源代码中自己编译它。

enter image description here

我该如何成功安装它?我至少需要 bin 文件才能使用 Racer Atom 包。

最佳答案

pub(restricted) 语法已在 Rust 1.18 中稳定下来。 ,所以您必须使用旧版本的 Rust。更新到 Rust 1.18 或更高版本应该可以解决该问题。

请记住,新的 Rust 版本每六周发布一次,因此请记住定期检查您是否是最新的。

关于rust - 无法安装Racer : "pub(restricted) syntax is experimental (see issue #32409)",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45473612/

相关文章:

performance - 为什么我的 Rust 程序比等效的 Java 程序慢?

rust - 找不到 AsRef<Path> 的名为 `join` 的方法

php - 无法让 Composer "path"存储库工作

ruby - 如何编写 'unless'语句

compiler-errors - 从方法内部的模式匹配返回时在当前范围内找不到关联类型

rust - 为什么 Box<dyn Error> 不实现 Error?

Python:导入包含的包

R:通过解压缩而不是安装来使用包

reactjs - 在 JSX 语法(React)中使用三元条件表达式时出现语法错误

c - 不能获取位域的地址