我有一个用 Rust 编写的 Web 服务器,我想将其部署在 Heroku 上。服务器在我的机器上本地编译和运行良好(见下图),但是,它无法在 Rust 上编译,我得到一个编译错误。
error[E0432]: unresolved import `core::task::Wake`
--> /tmp/codon/tmp/cache/cargo/registry/src/github.com-1ecc6299db9ec823/standback-0.2.16/src/lib.rs:520:13
|
520 | pub use core::task::Wake;
| ^^^^^^^^^^^^----
| | |
| | help: a similar name exists in the module (notice the capitalization): `wake`
| no `Wake` in `task`
error: aborting due to previous error
(源码可见here)
最佳答案
这是 standback
中的一个问题几天前在新版本中修复的 crate 。您可以通过使用 cargo update
或 cargo update -p standback
更新您的 Cargo.lock
文件中的依赖项来获得修复。
关于heroku - Unresolved 导入 `core::task::Wake`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66807515/