mirror of
https://github.com/clap-rs/clap
synced 2024-11-10 23:04:23 +00:00
e67a061bcf
This doc attribute is used by rustdoc when generating documentation for other crates that depend on this crate. With the html_root_url, rustdoc will be able to generate correct links into this crate. See C-HTML-ROOT in the Rust API Guidelines for more information: https://rust-lang-nursery.github.io/api-guidelines/documentation.html#crate-sets-html_root_url-attribute-c-html-root A version-sync check was added to ensure that the URL is kept up to date when the crate version changes.
12 lines
209 B
Rust
12 lines
209 B
Rust
#[macro_use]
|
|
extern crate version_sync;
|
|
|
|
#[test]
|
|
fn test_readme_deps() {
|
|
assert_markdown_deps_updated!("README.md");
|
|
}
|
|
|
|
#[test]
|
|
fn test_html_root_url() {
|
|
assert_html_root_url_updated!("src/lib.rs");
|
|
}
|