Repository: jonasbb/serde_with
Pull request #630 (2023-07-31 16:28:26)

Move shared metadata to workspace definition
Move shared metadata, like license, repository, or edition to the
workspace, such that all crates use the single definition.

codecov[bot]: ## [Codecov](https://app.codecov.io/gh/jonasbb/serde_with/pull/630?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonas+Bushart) Report
> Merging [#630](https://app.codecov.io/gh/jonasbb/serde_with/pull/630?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonas+Bushart) (1bef3b0) into [master](https://app.codecov.io/gh/jonasbb/serde_with/commit/a8d2498828cbfb2d377ff42a5b0ec4ee8a32acc0?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonas+Bushart) (a8d2498) will **increase** coverage by `0.25%`.
> Report is 6 commits behind head on master.
> The diff coverage is `82.75%`.

```diff
@@            Coverage Diff             @@
##           master     #630      +/-   ##
==========================================
+ Coverage   64.22%   64.47%   +0.25%     
==========================================
  Files          36       36              
  Lines        2127     2159      +32     
==========================================
+ Hits         1366     1392      +26     
- Misses        761      767       +6     
```


| [Files Changed](https://app.codecov.io/gh/jonasbb/serde_with/pull/630?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonas+Bushart) | Coverage Δ | |
|---|---|---|
| [serde\_with/src/de/duplicates.rs](https://app.codecov.io/gh/jonasbb/serde_with/pull/630?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonas+Bushart#diff-c2VyZGVfd2l0aC9zcmMvZGUvZHVwbGljYXRlcy5ycw==) | `0.00% <ø> (ø)` | |
| [serde\_with/src/ser/impls.rs](https://app.codecov.io/gh/jonasbb/serde_with/pull/630?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonas+Bushart#diff-c2VyZGVfd2l0aC9zcmMvc2VyL2ltcGxzLnJz) | `91.66% <ø> (ø)` | |
| [...e\_with/src/duplicate\_key\_impls/first\_value\_wins.rs](https://app.codecov.io/gh/jonasbb/serde_with/pull/630?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonas+Bushart#diff-c2VyZGVfd2l0aC9zcmMvZHVwbGljYXRlX2tleV9pbXBscy9maXJzdF92YWx1ZV93aW5zLnJz) | `79.41% <77.77%> (-0.59%)` | :arrow_down: |
| [...with/src/duplicate\_key\_impls/error\_on\_duplicate.rs](https://app.codecov.io/gh/jonasbb/serde_with/pull/630?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonas+Bushart#diff-c2VyZGVfd2l0aC9zcmMvZHVwbGljYXRlX2tleV9pbXBscy9lcnJvcl9vbl9kdXBsaWNhdGUucnM=) | `86.36% <83.33%> (-1.14%)` | :arrow_down: |
| [...de\_with/src/duplicate\_key\_impls/last\_value\_wins.rs](https://app.codecov.io/gh/jonasbb/serde_with/pull/630?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonas+Bushart#diff-c2VyZGVfd2l0aC9zcmMvZHVwbGljYXRlX2tleV9pbXBscy9sYXN0X3ZhbHVlX3dpbnMucnM=) | `86.36% <83.33%> (-1.14%)` | :arrow_down: |
| [serde\_with/src/de/impls.rs](https://app.codecov.io/gh/jonasbb/serde_with/pull/630?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonas+Bushart#diff-c2VyZGVfd2l0aC9zcmMvZGUvaW1wbHMucnM=) | `58.83% <100.00%> (+0.16%)` | :arrow_up: |

... and [1 file with indirect coverage changes](https://app.codecov.io/gh/jonasbb/serde_with/pull/630/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonas+Bushart)

:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Jonas+Bushart)


Patch:
diff --git a/Cargo.toml b/Cargo.toml
index d8cb669..41caafd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,6 +6,14 @@ members = [
 ]
 resolver = "2"
 
+[workspace.package]
+edition = "2021"
+license = "MIT OR Apache-2.0"
+readme = "README.md"
+repository = "https://github.com/jonasbb/serde_with/"
+rust-version = "1.64"
+version = "3.2.0"
+
 [workspace.metadata.release]
 consolidate-commits = true
 pre-release-commit-message = "Bump version to v{{version}}"
diff --git a/serde_with/Cargo.toml b/serde_with/Cargo.toml
index 1dca1d2..989bd21 100644
--- a/serde_with/Cargo.toml
+++ b/serde_with/Cargo.toml
@@ -5,17 +5,18 @@ authors = [
     "Marcin Kaźmierczak",
 ]
 name = "serde_with"
-rust-version = "1.64"
-version = "3.2.0"
 
 categories = ["encoding", "no-std", "no-std::no-alloc"]
 description = "Custom de/serialization functions for Rust's serde"
 documentation = "https://docs.rs/serde_with/"
-edition = "2021"
 keywords = ["serde", "utilities", "serialization", "deserialization"]
-license = "MIT OR Apache-2.0"
-readme = "README.md"
-repository = "https://github.com/jonasbb/serde_with"
+
+edition.workspace = true
+license.workspace = true
+readme.workspace = true
+repository.workspace = true
+rust-version.workspace = true
+version.workspace = true
 
 include = ["src/**/*", "tests/**/*", "LICENSE-*", "README.md", "CHANGELOG.md"]
 
diff --git a/serde_with_macros/Cargo.toml b/serde_with_macros/Cargo.toml
index fb8f227..cda51b2 100644
--- a/serde_with_macros/Cargo.toml
+++ b/serde_with_macros/Cargo.toml
@@ -1,17 +1,18 @@
 [package]
 authors = ["Jonas Bushart"]
 name = "serde_with_macros"
-rust-version = "1.64"
-version = "3.2.0"
 
 categories = ["encoding"]
 description = "proc-macro library for serde_with"
 documentation = "https://docs.rs/serde_with_macros/"
-edition = "2021"
 keywords = ["serde", "utilities", "serialization", "deserialization"]
-license = "MIT OR Apache-2.0"
-readme = "README.md"
-repository = "https://github.com/jonasbb/serde_with/"
+
+edition.workspace = true
+license.workspace = true
+readme.workspace = true
+repository.workspace = true
+rust-version.workspace = true
+version.workspace = true
 
 include = [
     "src/**/*",


Test patch:
diff --git a/serde_with/tests/version_numbers.rs b/serde_with/tests/version_numbers.rs
index 1155b85..d9cdc2f 100644
--- a/serde_with/tests/version_numbers.rs
+++ b/serde_with/tests/version_numbers.rs
@@ -20,10 +20,7 @@ fn test_serde_with_macros_dependency() {
         "../serde_with/Cargo.toml",
         r#"^serde_with_macros = .*? version = "={version}""#
     );
-    version_sync::assert_contains_regex!(
-        "../serde_with_macros/Cargo.toml",
-        r#"^version = "{version}""#
-    );
+    version_sync::assert_contains_regex!("../Cargo.toml", r#"^version = "{version}""#);
 }
 
 /// Check that all docs.rs links point to the current version
diff --git a/serde_with_test/Cargo.toml b/serde_with_test/Cargo.toml
index 45ae8b0..ceaf59d 100644
--- a/serde_with_test/Cargo.toml
+++ b/serde_with_test/Cargo.toml
@@ -1,9 +1,12 @@
 [package]
-edition = "2021"
 name = "serde_with_test"
 publish = false
 version = "0.0.0"
-rust-version = "1.64"
+
+edition.workspace = true
+license.workspace = true
+repository.workspace = true
+rust-version.workspace = true
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html