我尝试使用 这很奇怪,因为我在此包装箱中派生了其他宏,因此代码可以正确构建并运行。我通过 我做错什么了吗?还是箱子遗漏了什么?我使用Rust 2018. cargo doc
并遇到这样的错误:error: cannot find derive macro `Cacheable` in this scope
--> src/some_cache.rs:95:10
|
95 | #[derive(Cacheable, Clone, Debug)]
| ^^^^^^^^^
error: Compilation failed, aborting rustdoc
#[macro_use] extern crate mouscache_derive;
导入了此宏。
感谢您的帮助。0 个答案:
没有答案