heroku - Unresolved 导入 `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 updatecargo update -p standback 更新您的 Cargo.lock 文件中的依赖项来获得修复。

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

相关文章:

ios - SwiftUI:如何知道修饰符的正确顺序?

firebase - 在 Flutter 中使用相同的 Firebase 将同一应用程序中的用户和卖

java - 如何使用 Jackson 从 Json 文件中读取特定对象

hibernate - 如何使用 Quarkus 和 Panache 在 snake case 中获

ios - 如何将十六进制数据分解为来自 BLE 设备的可用数据? (速度和节奏)

delphi - GDI+ DrawLine 什么都不画

r - 如何在 Apple Silicon (M1) Mac 上安装 RcppArmadillo

c# - 添加新包会破坏 .NET 5 应用程序

qt - 如何将 QML 文件组织到嵌套文件夹中?

c - 这个 C 函数是什么意思?函数指针?