rust-lang/rust-by-example

`cargo install mdbook` error (Contributing)

ruanswanepoel opened this issue · 2 comments

According to CONTRIBUTING.md, I should just be able to install the repo and run cargo install mdbook. However, the following error shows up when attempting this:

$ cargo install mdbook

Updating crates.io index
Installing mdbook v0.4.40
Updating crates.io index
error: failed to compile `mdbook v0.4.40`, intermediate artifacts can be found at `C:\Users\ruane\AppData\Local\Temp\cargo-installIVRSCP`

Caused by:
  failed to select a version for `env_logger`.
      ... required by package `mdbook v0.4.40`
  versions that meet the requirements `^0.11.1` are: 0.11.3, 0.11.2, 0.11.1

  the package `mdbook` depends on `env_logger`, with features: `anstream` but `env_logger` does not have these features.
   It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.

  failed to select a version for `env_logger` which could resolve this conflict

I also noticed there is no Cargo.toml file in source control. Is this intentional?

Tasks

No tasks being tracked yet.

@ruanswanepoel it's weird, I've tested on Windows, Mac and Linux (Ubuntu) and all instructions run without problems.

I ran into same issue and rustup update fixed it.