heroku - Unresolved 导入 `core::task::Wake`

标签 heroku rust rust-cargo

我有一个用 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

在我的机器上完美运行: Working perfectly on my machine

不在 Heroku 中编译 Not compiling in Heroku

(源码可见here)

最佳答案

这是 standback 中的一个问题几天前在新版本中修复的 crate 。您可以通过使用 cargo updatecargo update -p standback 更新您的 Cargo.lock 文件中的依赖项来获得修复。

关于heroku - Unresolved 导入 `core::task::Wake`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66807515/

相关文章:

ajax - Grails中Ajax请求的每个用户 Controller 的单例实例?

testing - 运行 Rust cargo test 并让测试运行器将任何日志输出显示到控制台 stdout 或 stderr 的方法有哪些?

rust - 查找Rust Prelude类型的文档

ruby-on-rails - 摆脱 Rails 4/Heroku 中旧的编译资源

python - 如何自动从 Heroku 上的 git 子模块中提取最新提交?

ruby-on-rails - Rails 搜索索引 : Sphinx or Solr?

rust - 我们如何在 Rust 中检测主机操作系统类型(而不是目标操作系统)?

http - 如何使用超体 channel ?

rust - 创建Docker镜像后出现的问题

rust - 如何降级或安装我使用 `cargo install` 安装的工具的旧版本?