我有一个用 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
Run Code Online (Sandbox Code Playgroud)
(源代码可以在这里找到)