avitex / rust-public-ip

Find the public IP address of a device
MIT License
28 stars 7 forks source link

an unknown tool name found in scoped lint: `rustdoc::all` #13

Closed tuddman closed 2 years ago

tuddman commented 3 years ago

when attempting to include public_ip = "0.2" in Cargo.toml

error[E0710]: an unknown tool name found in scoped lint: `rustdoc::all`
  --> <Home>/.cargo/registry/src/github.com-1ecc6299db9ec823/public-ip-0.2.1/src/lib.rs:24:5
   |
24 |     rustdoc::all,
   |     ^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0710`.
error: could not compile `public-ip`

ref: https://doc.rust-lang.org/rustdoc/lints.html

avitex commented 2 years ago

Out of curiosity, what toolchain do you have setup and version of rustc?

rustdoc::all was introduced in 1.52

cargo --version
rustc --version

Perhaps if rustdoc is not installed, this lint will fail.

avitex commented 2 years ago

I've put the lint behind a cfg. Closing as this should be fixed in the latest release