【问题标题】:Cargo fails to download nom v0.5.0Cargo 无法下载 nom v0.5.0
【发布时间】:2016-02-02 07:14:51
【问题描述】:

我正在尝试使用Nom,但在运行cargo build --verbose 时出现以下错误:

Unable to get packages from source

Caused by:
  Failed to unpack package `nom v0.5.0`

Caused by:
  The filename, directory name, or volume label syntax is incorrect.
 (os error 123)

我的Cargo.toml 看起来像这样:

[package]
name = "hello_world"
version = "0.1.0"
authors = ["bob"]
[dependencies]
nom = "~0.5.0"

我该如何解决这个问题? cargo update 没有帮助。我正在使用作为 Rust 1.4 版本(Windows 7、x64)的一部分安装的 cargo 0.5.0-nightly (833b947 2015-09-13)。

【问题讨论】:

  • 不管怎样,我发现 Rust 1.4 和 Windows 7 / x86 虚拟机存在同样的问题。奇怪的是,板条箱似乎已扩展并且源文件可用(\Users\myuser\.cargo\registry\src\...)。
  • 其他包下载正确吗?你能测试不同版本的nom吗?
  • 0.4.0 运行良好!有趣..
  • 现在有一个issue filed about this。

标签: dependencies rust rust-cargo nom


【解决方案1】:

最后一个 beta 版本(1.0.0-beta2,以及未来的稳定版本)应该可以解决这个问题。

【讨论】:

    猜你喜欢
    • 2017-06-15
    • 2022-09-25
    • 2015-12-13
    • 2019-05-26
    • 2015-07-26
    • 2020-01-05
    • 2020-09-16
    • 2021-09-28
    相关资源
    最近更新 更多