未解决的导入`core::task::Wake`
Unresolved import `core::task::Wake`
我有一个用 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
在我的机器上完美运行:
不在 Heroku 中编译
(源代码可以找到here)
这是 standback
crate 中的一个问题,几天前已在新版本中修复。您可以通过使用 cargo update
或 cargo update -p standback
.
更新 Cargo.lock
文件中的依赖项来获得修复
我有一个用 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
在我的机器上完美运行:
不在 Heroku 中编译
(源代码可以找到here)
这是 standback
crate 中的一个问题,几天前已在新版本中修复。您可以通过使用 cargo update
或 cargo update -p standback
.
Cargo.lock
文件中的依赖项来获得修复