deadlinks/cargo-deadlinks
{ "createdAt": "2016-03-25T16:26:44Z", "defaultBranch": "master", "description": "Cargo subcommand for checking your documentation for broken links", "fullName": "deadlinks/cargo-deadlinks", "homepage": "", "language": "Rust", "name": "cargo-deadlinks", "pushedAt": "2024-12-10T14:14:12Z", "stargazersCount": 155, "topics": [ "cargo-subcommand", "linter" ], "updatedAt": "2025-09-27T04:46:45Z", "url": "https://github.com/deadlinks/cargo-deadlinks"}cargo-deadlinks •

Section titled “cargo-deadlinks • ”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
Section titled “Installation”Install cargo-deadlinks via:
cargo install cargo-deadlinksAlternatively, install pre-built binaries from the [releases page].
[intra-doc links] !: https://doc.rust-lang.org/rustdoc/linking-to-items-by-name.html
[cargo-intraconv] !: https://github.com/poliorcetics/cargo-intraconv
[releases page] !: https://github.com/deadlinks/cargo-deadlinks/releases
From your packages directory run:
# this will automatically run `cargo doc` for you# any broken links will show up in the outputcargo deadlinks# if you also want to check http and https linkscargo deadlinks --check-httpBy 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/docTo check a project that isn’t a crate, use deadlinks instead:
# this requires that you already have a static site in build/htmldeadlinks build/htmlFor information about other arguments run cargo deadlinks --help.
Minimum Supported Rust Version (MSRV)
Section titled “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
Section titled “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
Section titled “License”Licensed under either of
- Apache License, Version 2.0, ([LICENSE-APACHE]!(LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license ([LICENSE-MIT]!(LICENSE-MIT) or http://opensource.org/licenses/MIT)
at your option.