小编Aks*_*ule的帖子

未解决的导入`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
Run Code Online (Sandbox Code Playgroud)

在我的机器上完美运行: 在我的机器上完美运行

不在 Heroku 中编译 不在 Heroku 中编译

(源代码可以在这里找到)

heroku rust rust-cargo

1
推荐指数
1
解决办法
296
查看次数

标签 统计

heroku ×1

rust ×1

rust-cargo ×1