16 releases

0.8.1 Oct 13, 2021
0.8.0 Jan 18, 2021
0.7.2 Jan 9, 2021
0.7.1 Dec 18, 2020
0.1.0 Mar 25, 2016

#299 in Cargo plugins

Download history 84/week @ 2024-07-19 80/week @ 2024-07-26 117/week @ 2024-08-02 94/week @ 2024-08-09 69/week @ 2024-08-16 98/week @ 2024-08-23 65/week @ 2024-08-30 71/week @ 2024-09-06 86/week @ 2024-09-13 104/week @ 2024-09-20 124/week @ 2024-09-27 136/week @ 2024-10-04 82/week @ 2024-10-11 86/week @ 2024-10-18 64/week @ 2024-10-25 76/week @ 2024-11-01

320 downloads per month
Used in gluon_doc

MIT/Apache

51KB
1K SLoC

cargo-deadlinks • License

Check your cargo doc documentation for broken links!

Useful if you just refactored the structure of your crate or want to ensure that your documentation is readable offline.

This crate pairs well with intra-doc links and cargo-intraconv, which make it easier to write links without having to know the exact HTML page rustdoc will generate.

deadlinks can also be used on projects that aren't Rust crates.

Installation

Install cargo-deadlinks via:

cargo install cargo-deadlinks

Alternatively, install pre-built binaries from the releases page.

Usage

From your packages directory run:

# this will automatically run `cargo doc` for you
# any broken links will show up in the output
cargo deadlinks
# if you also want to check http and https links
cargo deadlinks --check-http

By default cargo deadlinks will check only the offline (file://) links of your package.

If you want to check the documentation in another directory e.g. to check all your dependencies, you can provide the --dir argument:

cargo deadlinks --dir target/doc

To check a project that isn't a crate, use deadlinks instead:

# this requires that you already have a static site in build/html
deadlinks build/html

For information about other arguments run cargo deadlinks --help.

Minimum Supported Rust Version (MSRV)

The current MSRV is 1.45.0. This may be increased in minor versions, but will never increase in a patch version.

Contributing

We are happy about any contributions!

To get started you can take a look at our Github issues.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as below, without any additional terms or conditions.

License

Licensed under either of

at your option.

Dependencies

~21–32MB
~635K SLoC