【发布时间】:2019-07-02 07:18:06
【问题描述】:
我正在尝试从书中构建the plugin example,但它不起作用:
rustc failed to resolve: could not find `quote` in `ext`
我该怎么办?该示例甚至没有任何构建说明。这是故意的吗?
【问题讨论】:
-
您使用的是哪个版本的 rust ?它使用
rust roman_numerals.rs编译rustc 1.32.0-nightly -
也许我明白了,您指向github-repo 和code in the book 的链接不同。尝试github中的代码。
-
而且 github 中的代码说
This code also appears in src/doc/unstable-book/src/language-features/plugin.md. Please keep the two copies in sync! FIXME: have rustdoc read this file,但直到现在还没有同步。 -
@ymonad 是的,我使用了书中的代码。使用 github repo 中的代码而不是书中的代码使其编译。非常感谢。我被困了好几天。
-
很高兴您解决了这个问题。也许我应该将其发布为将来可能陷入困境的人的答案。
标签: compiler-errors rust rust-cargo