Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
version-sync 0.9.5 - Docs.rs
[go: Go Back, main page]

version-sync 0.9.5

Crate for ensuring that version numbers in README files and other files are kept in sync with the crate version.
Documentation
#[test]
#[cfg(feature = "markdown_deps_updated")]
fn test_readme_deps() {
    version_sync::assert_markdown_deps_updated!("README.md");
}

#[test]
#[cfg(feature = "contains_regex")]
fn test_readme_changelog() {
    version_sync::assert_contains_regex!(
        "README.md",
        r"^### Version {version} \(20\d\d-\d\d-\d\d\)$"
    );
}

#[test]
#[cfg(feature = "contains_regex")]
fn test_readme_links_are_updated() {
    version_sync::assert_only_contains_regex!("README.md", "docs.rs/{name}/{version}/");
}

#[test]
#[cfg(feature = "html_root_url_updated")]
fn test_html_root_url() {
    version_sync::assert_html_root_url_updated!("src/lib.rs");
}