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.7.0 - Docs.rs
[go: Go Back, main page]

version-sync 0.7.0

Simple crate for ensuring that version numbers in README files are updated when the crate version changes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[macro_use]
extern crate version_sync;

#[test]
fn test_readme_deps() {
    assert_markdown_deps_updated!("README.md");
}

#[test]
fn test_readme_changelog() {
    assert_contains_regex!("README.md", r"^### Version {version} — .* \d\d?.., 20\d\d$");
}

#[test]
fn test_html_root_url() {
    assert_html_root_url_updated!("src/lib.rs");
}