代码之家  ›  专栏  ›  技术社区  ›  Milkncookiez

由于框架依赖性错误,无法生成rust的火箭项目

  •  0
  • Milkncookiez  · 技术社区  · 6 年前

    我在跟踪 this tutorial here Rocket's official guide 建立一个网络服务器。

    每晚 建立。但我得到了以下错误:

    error: failed to select a version for the requirement `ring = "^0.11.0"`
      candidate versions found which didn't match: 0.16.11, 0.16.10, 0.16.9, ...
      location searched: crates.io index
    required by package `cookie v0.9.1`
        ... which is depended on by `rocket v0.3.6`
        ... which is depended on by `my-project`
    

    很明显,依赖关系有些不匹配,但是 ring 是框架本身所需要的,我不知道如何调试。。。此外,我使用的是最新版本的《货与锈》:

    cargo 1.43.0-nightly (... 2020-02-18)
    rustc 1.43.0-nightly (... 2020-02-21)
    
    0 回复  |  直到 6 年前
        1
  •  2
  •   SCappella    6 年前

    ring v0.11.0 was yanked crates.io (见 this issue 一些背景)。因为有些版本 rocket ring 那是被拉的,那些版本的 火箭

    rocket v0.4.0 (或最新的 v0.4.2 )应该能解决这个问题。

    推荐文章