简体   繁体   English

无法构建 dotenv v0.15.0 - rust 货物

[英]Failed to build dotenv v0.15.0 - rust cargo

I'm facing a problem trying to build a project that uses this this crate.我在尝试构建使用此板条箱的项目时遇到问题。

I'm running inside the docker rust:1.44.0.我在 docker rust:1.44.0 内运行。 I have installed the nightly:我已经安装了每晚:

rustup toolchain install nightly
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: latest update on 2020-06-12, rust version 1.46.0-nightly (a37c32e2d 2020-06-11)
info: downloading component 'cargo'
  5.0 MiB /   5.0 MiB (100 %)   1.5 MiB/s in  2s ETA:  0s
info: downloading component 'rust-std'
 15.9 MiB /  15.9 MiB (100 %)  15.0 MiB/s in  1s ETA:  0s
info: downloading component 'rustc'
 47.3 MiB /  47.3 MiB (100 %)  10.9 MiB/s in  5s ETA:  0s
info: installing component 'cargo'
info: installing component 'rust-std'
 15.9 MiB /  15.9 MiB (100 %)   9.1 MiB/s in  1s ETA:  0s
info: installing component 'rustc'
 47.3 MiB /  47.3 MiB (100 %)   9.9 MiB/s in  4s ETA:  0s

  nightly-x86_64-unknown-linux-gnu installed - rustc 1.46.0-nightly (a37c32e2d 2020-06-11)

info: checking for self-updates

Now it gives me:现在它给了我:

 cargo +nightly test
error: failed to download `dotenv v0.15.0`

Caused by:
  unable to get packages from source

Caused by:
  failed to parse manifest at `/usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/dotenv-0.15.0/Cargo.toml`

Caused by:
  readme file with name '../README.md' was not found

I have an open issue in their project: https://github.com/dotenv-rs/dotenv/issues/51我在他们的项目中有一个未解决的问题: https://github.com/dotenv-rs/dotenv/issues/51

The best way to deal with this is to change your dependency on dotenv to this in your project's Cargo.toml处理这个问题的最好方法是在你的项目的 Cargo.toml 中改变你对dotenv的依赖


    [dependencies]
    dotenv = { version="0.15.0",git="https://github.com/dotenv-rs/dotenv" }

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM