Skip to content

Commit 393ab0b

Browse files
authored
Merge pull request #63 from mgeisler/rustc-version-badge
readme: show minimum supported rustc version
2 parents bfdd063 + a44f315 commit 393ab0b

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![](https://img.shields.io/crates/v/version-sync.svg)][crates-io]
44
[![](https://docs.rs/version-sync/badge.svg)][api-docs]
5+
[![](https://img.shields.io/badge/rustc-1.31.0-blue.svg)][rust-2018]
56
[![](https://travis-ci.org/mgeisler/version-sync.svg?branch=master)][travis-ci]
67
[![](https://ci.appveyor.com/api/projects/status/github/mgeisler/version-sync?branch=master&svg=true)][appveyor]
78
[![](https://codecov.io/gh/mgeisler/version-sync/branch/master/graph/badge.svg)][codecov]
@@ -110,9 +111,10 @@ This is a changelog describing the most important changes per release.
110111

111112
### Unreleased ###
112113

113-
We now use Rust 2018, which means we reqire Rust version 1.31.0 or
114-
later. The `assert_html_root_url_updated!` macro will again report
115-
accurate line numbers based on span information from the `syn` crate.
114+
We now use [Rust 2018][rust-2018], which means we require Rust version
115+
1.31.0 or later. The `assert_html_root_url_updated!` macro will again
116+
report accurate line numbers based on span information from the `syn`
117+
crate.
116118

117119
### Version 0.7.0 — January 14th, 2019
118120

@@ -207,6 +209,7 @@ Contributions will be accepted under the same license.
207209

208210
[crates-io]: https://crates.io/crates/version-sync
209211
[api-docs]: https://docs.rs/version-sync/
212+
[rust-2018]: https://doc.rust-lang.org/edition-guide/rust-2018/
210213
[travis-ci]: https://travis-ci.org/mgeisler/version-sync
211214
[appveyor]: https://ci.appveyor.com/project/mgeisler/version-sync
212215
[codecov]: https://codecov.io/gh/mgeisler/version-sync

tests/version-numbers.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ fn test_readme_changelog() {
1111
);
1212
}
1313

14+
#[test]
15+
fn test_minimum_rustc_version() {
16+
let version = "1.31.0";
17+
version_sync::assert_contains_regex!(".travis.yml", &format!(r"^ - {}", version));
18+
version_sync::assert_contains_regex!("README.md", &format!("badge/rustc-{}", version));
19+
}
20+
1421
#[test]
1522
fn test_html_root_url() {
1623
version_sync::assert_html_root_url_updated!("src/lib.rs");

0 commit comments

Comments
 (0)