Repository: jonasbb/serde_with
Pull request #34 (2019-02-16 14:01:10)

Maintenance Changes
* Add codecov to crates.io badges
* Ensure the version numbers in the documentation stay in sync with the crate.

jonasbb: bors r+
bors[bot]: # Merge conflict
codecov[bot]: # [Codecov](https://codecov.io/gh/jonasbb/serde_with/pull/34?src=pr&el=h1) Report
> Merging [#34](https://codecov.io/gh/jonasbb/serde_with/pull/34?src=pr&el=desc) into [master](https://codecov.io/gh/jonasbb/serde_with/commit/4319090cdcbb0da2e51a44c0c6a257901cf2a8f5?src=pr&el=desc) will **increase** coverage by `0.36%`.
> The diff coverage is `100%`.

[![Impacted file tree graph](https://codecov.io/gh/jonasbb/serde_with/pull/34/graphs/tree.svg?width=650&token=DoaDtevgcY&height=150&src=pr)](https://codecov.io/gh/jonasbb/serde_with/pull/34?src=pr&el=tree)

```diff
@@            Coverage Diff             @@
##           master      #34      +/-   ##
==========================================
+ Coverage   67.35%   67.72%   +0.36%     
==========================================
  Files          10       11       +1     
  Lines         530      536       +6     
==========================================
+ Hits          357      363       +6     
  Misses        173      173
```


| [Impacted Files](https://codecov.io/gh/jonasbb/serde_with/pull/34?src=pr&el=tree) | Coverage Δ | |
|---|---|---|
| [src/lib.rs](https://codecov.io/gh/jonasbb/serde_with/pull/34/diff?src=pr&el=tree#diff-c3JjL2xpYi5ycw==) | `25% <ø> (ø)` | :arrow_up: |
| [tests/version\_numbers.rs](https://codecov.io/gh/jonasbb/serde_with/pull/34/diff?src=pr&el=tree#diff-dGVzdHMvdmVyc2lvbl9udW1iZXJzLnJz) | `100% <100%> (ø)` | |

------

[Continue to review full report at Codecov](https://codecov.io/gh/jonasbb/serde_with/pull/34?src=pr&el=continue).
> **Legend** - [Click here to learn more](https://docs.codecov.io/docs/codecov-delta)
> `Δ = absolute <relative> (impact)`, `ø = not affected`, `? = missing data`
> Powered by [Codecov](https://codecov.io/gh/jonasbb/serde_with/pull/34?src=pr&el=footer). Last update [4319090...a09179f](https://codecov.io/gh/jonasbb/serde_with/pull/34?src=pr&el=lastupdated). Read the [comment docs](https://docs.codecov.io/docs/pull-request-comments).


Patch:
diff --git a/.travis.yml b/.travis.yml
index e3a362b..6f9493c 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,5 @@
 language: rust
 sudo: true
-cache: cargo
 
 notifications:
   email: false
@@ -53,7 +52,8 @@ before_cache:
 
 env:
   global:
-  - RUSTFLAGS="-C link-dead-code"
+    - RUSTFLAGS="-C link-dead-code"
+    - RUST_BACKTRACE="full"
 
 addons:
   apt:
diff --git a/Cargo.toml b/Cargo.toml
index c49e643..fa92352 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,6 +21,7 @@ exclude = [
 
 [badges]
 travis-ci = { repository = "jonasbb/serde_with", branch = "master" }
+codecov = { repository = "jonasbb/serde_with", branch = "master", service = "github" }
 maintenance = { status = "actively-developed" }
 
 [features]
diff --git a/README.md b/README.md
index 15ea473..f60977b 100644
--- a/README.md
+++ b/README.md
@@ -17,7 +17,7 @@ Add this to your `Cargo.toml`:
 
 ```toml
 [dependencies.serde_with]
-version = "..."
+version = "1.0.0"
 features = [ "..." ]
 ```
 
diff --git a/src/lib.rs b/src/lib.rs
index 453ce8f..1af7339 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -10,6 +10,7 @@
     variant_size_differences
 )]
 #![cfg_attr(feature = "cargo-clippy", allow(renamed_and_removed_lints))]
+#![doc(html_root_url = "https://docs.rs/serde_with/1.0.0")]
 
 //! [![docs.rs badge](https://docs.rs/serde_with/badge.svg)](https://docs.rs/serde_with/)
 //! [![crates.io badge](https://img.shields.io/crates/v/serde_with.svg)](https://crates.io/crates/serde_with/)
@@ -28,7 +29,7 @@
 //!
 //! ```toml
 //! [dependencies.serde_with]
-//! version = "..."
+//! version = "1.0.0"
 //! features = [ "..." ]
 //! ```
 //!


Test patch:
diff --git a/tests/version_numbers.rs b/tests/version_numbers.rs
new file mode 100644
index 0000000..49050f0
--- /dev/null
+++ b/tests/version_numbers.rs
@@ -0,0 +1,17 @@
+#[macro_use]
+extern crate version_sync;
+
+#[test]
+fn test_readme_deps() {
+    assert_markdown_deps_updated!("README.md");
+}
+
+#[test]
+fn test_readme_deps_in_lib() {
+    assert_contains_regex!("src/lib.rs", r#"^//! version = "{version}""#);
+}
+
+#[test]
+fn test_html_root_url() {
+    assert_html_root_url_updated!("src/lib.rs");
+}