Function version_sync::check_html_root_url
[−]
[src]
pub fn check_html_root_url(
path: &str,
pkg_name: &str,
pkg_version: &str
) -> Result<(), String>
Check version numbers in html_root_url attributes.
This function parses the Rust source file in path and looks for
html_root_url attributes. Such an attribute must specify a valid
URL and if the URL points to docs.rs, it must be point to the
documentation for pkg_name and pkg_version.
Errors
If any attribute fails the check, an Err is returned with a
succinct error message. Status information has then already been
printed on stdout.