daynin / fundoc

Fundoc - the right way to generate documentation

Home Page:https://daynin.github.io/fundoc/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to install fundoc via cargo

nekitk opened this issue · comments

nekitk@192 ~ % cargo install fundoc
    Updating crates.io index
  Installing fundoc v0.2.5
error: failed to compile `fundoc v0.2.5`, intermediate artifacts can be found at `/var/folders/gx/2tsmxvzx1pxgnm3pg8200t4r0000gn/T/cargo-installcGL3PO`
Caused by:
  failed to select a version for the requirement `zeroize = "^0.9.3"`
  candidate versions found which didn't match: 1.3.0, 1.2.0, 1.1.1, ...
  location searched: crates.io index
  required by package `dialoguer v0.7.1`
      ... which is depended on by `fundoc v0.2.5`

The same error appears when trying to install v0.2.1 though I had successfully installed it via cargo before.

Seems like the problem is caused by deletion of zeroize versions prior to 1.x:
https://crates.io/crates/zeroize/versions

Solved by running cargo install fundoc --locked