File tree Expand file tree Collapse file tree 3 files changed +21
-9
lines changed Expand file tree Collapse file tree 3 files changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,6 @@ readme = "README.md"
10
10
edition = " 2018"
11
11
autotests = false
12
12
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
-
21
13
[lib ]
22
14
name = " fn_error_context"
23
15
proc-macro = true
@@ -26,7 +18,17 @@ proc-macro = true
26
18
name = " tests"
27
19
path = " tests/tests.rs"
28
20
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
+
29
30
[dev-dependencies ]
30
31
anyhow = " 1.0.27"
31
32
trybuild = " 1.0.24"
32
33
failure = " 0.1.7"
34
+ version-sync = " 0.8.1"
Original file line number Diff line number Diff line change 25
25
//! [`anyhow`]: https://crates.io/crates/anyhow
26
26
//! [`failure`]: https://crates.io/crates/failure
27
27
28
+ #![ doc( html_root_url = "https://docs.rs/fn-error-context/0.0.0" ) ]
28
29
#![ deny( missing_docs) ]
29
30
30
31
extern crate proc_macro;
@@ -40,7 +41,7 @@ use quote::quote;
40
41
///
41
42
/// This macro desugars to something like
42
43
/// ```
43
- /// # fn function_body() { }
44
+ /// # fn function_body() -> anyhow::Result<()> { unimplemented!() }
44
45
/// #
45
46
/// pub fn function() -> anyhow::Result<()> {
46
47
/// (|| -> anyhow::Result<()> {
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments