`cargo package` error: extern location for foo does not exist

`cargo package` error: extern location for foo does not exist

我有一个非常简单的程序here。我能够使用 cargo build 构建此程序,正如您在 GitHub 页面中看到的那样,它也可以在 Travis-CI.

上正确构建

但是,命令 cargo package 失败并显示错误:

error: extern location for cellular_maps does not exist: D:\UserFolder\Code\CellularMaps-Rust\target/package/cellular_maps-0.0.3\target\debug\libcellular_maps-ae97300493a8edd3.rlib
src\main.rs:1:1: 1:28 error: can't find crate for `cellular_maps`
src\main.rs:1 extern crate cellular_maps;

我能够在 crates.io 上使用较旧的 rust 版本发布这个小型库。它发生了一些变化,还是只是货物中的一个错误? (如果你仔细看,你会发现路径中混合了反斜杠和斜杠。)

Rust 版本是

rustc 1.0.0-nightly (91bdf23f5 2015-03-09) (built 2015-03-09)

货物版本是

cargo 0.0.1-pre-nightly (b27cd47 2015-03-07) (built 2015-03-09)

我正在 Windows 机器上工作。

谢谢!

我相信这是 https://github.com/rust-lang/cargo/issues/1404 which was just fixed with https://github.com/rust-lang/cargo/pull/1406