Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo install mdbook error (Contributing) #1852

Closed
ruanswanepoel opened this issue May 20, 2024 · 2 comments
Closed

cargo install mdbook error (Contributing) #1852

ruanswanepoel opened this issue May 20, 2024 · 2 comments

Comments

@ruanswanepoel
Copy link
Contributor

ruanswanepoel commented May 20, 2024

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.
@marioidival
Copy link
Member

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

@Lilysunstrider
Copy link

I ran into same issue and rustup update fixed it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants