Skip to content

Commit c3426c4

Browse files
committed
Add version-sync
1 parent 5e17cbc commit c3426c4

File tree

3 files changed

+21
-9
lines changed

3 files changed

+21
-9
lines changed

Cargo.toml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,6 @@ readme = "README.md"
1010
edition = "2018"
1111
autotests = false
1212

13-
[dependencies]
14-
quote = "1.0.3"
15-
proc-macro2 = "1.0.9"
16-
17-
[dependencies.syn]
18-
features = ["full", "parsing"]
19-
version = "1.0.17"
20-
2113
[lib]
2214
name = "fn_error_context"
2315
proc-macro = true
@@ -26,7 +18,17 @@ proc-macro = true
2618
name = "tests"
2719
path = "tests/tests.rs"
2820

21+
[[test]]
22+
name = "version-numbers"
23+
path = "tests/version_numbers.rs"
24+
25+
[dependencies]
26+
quote = "1.0.3"
27+
proc-macro2 = "1.0.9"
28+
syn = { version = "1.0.17", features = ["full"] }
29+
2930
[dev-dependencies]
3031
anyhow = "1.0.27"
3132
trybuild = "1.0.24"
3233
failure = "0.1.7"
34+
version-sync = "0.8.1"

src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
//! [`anyhow`]: https://crates.io/crates/anyhow
2626
//! [`failure`]: https://crates.io/crates/failure
2727
28+
#![doc(html_root_url = "https://docs.rs/fn-error-context/0.0.0")]
2829
#![deny(missing_docs)]
2930

3031
extern crate proc_macro;
@@ -40,7 +41,7 @@ use quote::quote;
4041
///
4142
/// This macro desugars to something like
4243
/// ```
43-
/// # fn function_body() {}
44+
/// # fn function_body() -> anyhow::Result<()> { unimplemented!() }
4445
/// #
4546
/// pub fn function() -> anyhow::Result<()> {
4647
/// (|| -> anyhow::Result<()> {

tests/version_numbers.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#[test]
2+
fn test_readme_deps() {
3+
version_sync::assert_markdown_deps_updated!("README.md");
4+
}
5+
6+
#[test]
7+
fn test_html_root_url() {
8+
version_sync::assert_html_root_url_updated!("src/lib.rs");
9+
}

0 commit comments

Comments
 (0)