Repository: oxidecomputer/typify
Pull request #525 (2024-03-11 13:47:00)

Bump chrono from 0.4.34 to 0.4.35
Bumps [chrono](https://github.com/chronotope/chrono) from 0.4.34 to 0.4.35.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/chronotope/chrono/releases">chrono's releases</a>.</em></p>
<blockquote>
<h2>v0.4.35</h2>
<p>Most of our efforts have shifted to improving the API for a 0.5 release, for which cleanups and refactorings are landing on the 0.4.x branch.</p>
<p>The most significant changes in this release are two sets of deprecations.</p>
<ul>
<li>
<p>We deprecated all timestamp-related methods on <code>NaiveDateTime</code>. The reason is that a timestamp is defined to be in UTC. The <code>NaiveDateTime</code> type doesn't know the offset from UTC, so it was technically wrong to have these methods. The alternative is to use the similar methods on the <code>DateTime&lt;Utc&gt;</code> type, or from the <code>TimeZone</code> trait.</p>
<p>Converting from <code>NaiveDateTime</code> to <code>DateTime&lt;Utc&gt;</code> is simple with <code>.and_utc()</code>, and in the other direction with <code>.naive_utc()</code>.</p>
</li>
<li>
<p>The panicking constructors of <code>TimeDelta</code> (the new name of the <code>Duration</code> type) are deprecated. This was the last part of chrono that defaulted to panicking on error, dating from before rust 1.0.</p>
</li>
<li>
<p>A nice change is that <code>NaiveDate</code> now includes a niche. So now <code>Option&lt;NaiveDate&gt;</code>, <code>Option&lt;NaiveDateTime&gt;</code> and <code>Option&lt;DateTime&lt;Tz&gt;&gt;</code> are the same size as their base types.</p>
</li>
<li>
<p><code>format::Numeric</code> and <code>format::Fixed</code> are marked as <code>non_exhaustive</code>. This will allow us to improve our formatting and parsing support, and we have reason to believe this breaking change will have little to no impact on users.</p>
</li>
</ul>
<h1>Additions</h1>
<ul>
<li>Add <code>DateTime::{from_timestamp_micros, from_timestamp_nanos}</code> (<a href="https://redirect.github.com/chronotope/chrono/issues/1234">#1234</a>)</li>
<li>Add getters to <code>Parsed</code> (<a href="https://redirect.github.com/chronotope/chrono/issues/1465">#1465</a>)</li>
</ul>
<h1>Deprecations</h1>
<ul>
<li>Deprecate timestamp methods on <code>NaiveDateTime</code> (<a href="https://redirect.github.com/chronotope/chrono/issues/1473">#1473</a>)</li>
<li>Deprecate panicking constructors of <code>TimeDelta</code> (<a href="https://redirect.github.com/chronotope/chrono/issues/1450">#1450</a>)</li>
</ul>
<h1>Changes/fixes</h1>
<ul>
<li>Use <code>NonZeroI32</code> inside <code>NaiveDate</code> (<a href="https://redirect.github.com/chronotope/chrono/issues/1207">#1207</a>)</li>
<li>Mark <code>format::Numeric</code> and <code>format::Fixed</code> as <code>non_exhaustive</code> (<a href="https://redirect.github.com/chronotope/chrono/issues/1430">#1430</a>)</li>
<li><code>Parsed</code> fixes to error values (<a href="https://redirect.github.com/chronotope/chrono/issues/1439">#1439</a>)</li>
<li>Use <code>overflowing_naive_local</code> in <code>DateTime::checked_add*</code> (<a href="https://redirect.github.com/chronotope/chrono/issues/1333">#1333</a>)</li>
<li>Do complete range checks in <code>Parsed::set_*</code> (<a href="https://redirect.github.com/chronotope/chrono/issues/1465">#1465</a>)</li>
</ul>
<h1>Documentation</h1>
<ul>
<li>Rustfmt doctests (<a href="https://redirect.github.com/chronotope/chrono/issues/1452">#1452</a>)</li>
<li>Improve docs for crate features (<a href="https://redirect.github.com/chronotope/chrono/issues/1455">#1455</a>, thanks <a href="https://github.com/edmorley"><code>@​edmorley</code></a>)</li>
<li>Add more documentation and examples to <code>Parsed</code> (<a href="https://redirect.github.com/chronotope/chrono/issues/1439">#1439</a>)</li>
</ul>
<h1>Internal</h1>
<ul>
<li>Refactor <code>internals</code> module (<a href="https://redirect.github.com/chronotope/chrono/issues/1428">#1428</a>, <a href="https://redirect.github.com/chronotope/chrono/issues/1429">#1429</a>, <a href="https://redirect.github.com/chronotope/chrono/issues/1431">#1431</a>, <a href="https://redirect.github.com/chronotope/chrono/issues/1432">#1432</a>, <a href="https://redirect.github.com/chronotope/chrono/issues/1433">#1433</a>, <a href="https://redirect.github.com/chronotope/chrono/issues/1438">#1438</a>)</li>
<li>CI: test cross-compiling to <code>x86_64-unknown-illumos</code> instead of Solaris (<a href="https://redirect.github.com/chronotope/chrono/issues/1437">#1437</a>)</li>
<li>CI: lint Windows target, fix clippy warning (<a href="https://redirect.github.com/chronotope/chrono/issues/1441">#1441</a>)</li>
<li>CI: only run <code>cargo hack check</code> on Linux (<a href="https://redirect.github.com/chronotope/chrono/issues/1442">#1442</a>)</li>
<li>Update windows-bindgen to 0.54 (<a href="https://redirect.github.com/chronotope/chrono/issues/1462">#1462</a>, <a href="https://redirect.github.com/chronotope/chrono/issues/1483">#1483</a>)</li>
<li>Simplify error value of <code>parse_internal</code> (<a href="https://redirect.github.com/chronotope/chrono/issues/1459">#1459</a>)</li>
<li>Simplify <code>SerdeError</code> (<a href="https://redirect.github.com/chronotope/chrono/issues/1458">#1458</a>)</li>
<li>Simplify <code>NaiveDate::from_isoywd</code> a bit (<a href="https://redirect.github.com/chronotope/chrono/issues/1464">#1464</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/chronotope/chrono/commit/9fdb59638eda6b0e605edfeb59499730a2094a9b"><code>9fdb596</code></a> Prepare 0.4.35</li>
<li><a href="https://github.com/chronotope/chrono/commit/9e667b606e4f4896dea157a8f498d41511c54f7b"><code>9e667b6</code></a> Deprecate panicking <code>TimeDelta</code> constructors</li>
<li><a href="https://github.com/chronotope/chrono/commit/2c1b0bea947ca322aa17b79c26c1d0ddc1505488"><code>2c1b0be</code></a> Tests: replace <code>TimeDelta::milliseconds</code> with <code>try_milliseconds</code></li>
<li><a href="https://github.com/chronotope/chrono/commit/2bf3302ce58aadaae06a8a1fb6342295292863da"><code>2bf3302</code></a> Tests: replace <code>TimeDelta::seconds</code> with <code>try_seconds</code></li>
<li><a href="https://github.com/chronotope/chrono/commit/f93508ffd9bff4c0eac1332b4c2c25b03955985b"><code>f93508f</code></a> Tests: replace <code>TimeDelta::minutes</code> with <code>try_minutes</code></li>
<li><a href="https://github.com/chronotope/chrono/commit/9fc931a394054f183200f1c6bdc2bdfd475937d0"><code>9fc931a</code></a> Tests: replace <code>TimeDelta::hours</code> with <code>try_hours</code></li>
<li><a href="https://github.com/chronotope/chrono/commit/9f23c08e10241f03637b0a52591c65705dda9b19"><code>9f23c08</code></a> Tests: replace <code>TimeDelta::days</code> with <code>try_days</code></li>
<li><a href="https://github.com/chronotope/chrono/commit/e8f9b5e0414eb7232d6cf916f5ecd3b46839b15c"><code>e8f9b5e</code></a> Tests: replace <code>TimeDelta::weeks</code> with <code>try_weeks</code></li>
<li><a href="https://github.com/chronotope/chrono/commit/51a1aa27bd27c04d914c3f01e899e55189b5197b"><code>51a1aa2</code></a> Tests: use <code>Days</code> type when it is more appropriate than <code>TimeDelta</code></li>
<li><a href="https://github.com/chronotope/chrono/commit/4251bd1eb172d30af41be1a7e8893dd84046fe3c"><code>4251bd1</code></a> Replace <code>TimeDelta::seconds</code> with <code>try_seconds</code></li>
<li>Additional commits viewable in <a href="https://github.com/chronotope/chrono/compare/v0.4.34...v0.4.35">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=chrono&package-manager=cargo&previous-version=0.4.34&new-version=0.4.35)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>


Patch:
diff --git a/Cargo.lock b/Cargo.lock
index f02cf78..d1af63d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -143,15 +143,6 @@ dependencies = [
  "rustc-demangle",
 ]
 
-[[package]]
-name = "basic-toml"
-version = "0.1.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2db21524cad41c5591204d22d75e1970a2d1f71060214ca931dc7d5afe2c14e5"
-dependencies = [
- "serde",
-]
-
 [[package]]
 name = "bitflags"
 version = "1.3.2"
@@ -215,9 +206,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
 
 [[package]]
 name = "chrono"
-version = "0.4.34"
+version = "0.4.35"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5bc015644b92d5890fab7489e49d21f879d5c990186827d42ec511919404f38b"
+checksum = "8eaf5903dcbc0a39312feb77df2ff4c76387d591b9fc7b04a238dcf8bb62639a"
 dependencies = [
  "android-tzdata",
  "iana-time-zone",
@@ -230,9 +221,9 @@ dependencies = [
 
 [[package]]
 name = "clap"
-version = "4.5.1"
+version = "4.5.3"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c918d541ef2913577a0f9566e9ce27cb35b6df072075769e0b26cb5a554520da"
+checksum = "949626d00e063efc93b6dca932419ceb5432f99769911c0b995f7e884c778813"
 dependencies = [
  "clap_builder",
  "clap_derive",
@@ -240,9 +231,9 @@ dependencies = [
 
 [[package]]
 name = "clap_builder"
-version = "4.5.1"
+version = "4.5.2"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9f3e7391dad68afb0c2ede1bf619f579a3dc9c2ec67f089baa397123a2f3d1eb"
+checksum = "ae129e2e766ae0ec03484e609954119f123cc1fe650337e155d03b022f24f7b4"
 dependencies = [
  "anstream",
  "anstyle",
@@ -252,14 +243,14 @@ dependencies = [
 
 [[package]]
 name = "clap_derive"
-version = "4.5.0"
+version = "4.5.3"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "307bc0538d5f0f83b8248db3087aa92fe504e4691294d0c96c0eabc33f47ba47"
+checksum = "90239a040c80f5e14809ca132ddc4176ab33d5e17e49691793296e3fcb34d72f"
 dependencies = [
- "heck",
+ "heck 0.5.0",
  "proc-macro2",
  "quote",
- "syn 2.0.52",
+ "syn 2.0.53",
 ]
 
 [[package]]
@@ -387,7 +378,7 @@ dependencies = [
  "schemars",
  "serde",
  "serde_json",
- "syn 2.0.52",
+ "syn 2.0.53",
  "typify",
 ]
 
@@ -461,6 +452,12 @@ version = "0.4.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
 
+[[package]]
+name = "heck"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
+
 [[package]]
 name = "hermit-abi"
 version = "0.3.3"
@@ -691,7 +688,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "a41cf62165e97c7f814d2221421dbb9afcbcdb0a88068e5ea206e19951c2cbb5"
 dependencies = [
  "proc-macro2",
- "syn 2.0.52",
+ "syn 2.0.53",
 ]
 
 [[package]]
@@ -862,7 +859,7 @@ dependencies = [
  "proc-macro2",
  "quote",
  "schema-derive",
- "syn 2.0.52",
+ "syn 2.0.53",
 ]
 
 [[package]]
@@ -874,7 +871,7 @@ dependencies = [
  "paste",
  "proc-macro2",
  "quote",
- "syn 2.0.52",
+ "syn 2.0.53",
 ]
 
 [[package]]
@@ -925,7 +922,7 @@ checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b"
 dependencies = [
  "proc-macro2",
  "quote",
- "syn 2.0.52",
+ "syn 2.0.53",
 ]
 
 [[package]]
@@ -968,7 +965,7 @@ dependencies = [
  "proc-macro2",
  "quote",
  "serde",
- "syn 2.0.52",
+ "syn 2.0.53",
 ]
 
 [[package]]
@@ -1005,9 +1002,9 @@ dependencies = [
 
 [[package]]
 name = "syn"
-version = "2.0.52"
+version = "2.0.53"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b699d15b36d1f02c3e7c69f8ffef53de37aefae075d8488d4ba1a7788d574a07"
+checksum = "7383cd0e49fff4b6b90ca5670bfd3e9d6a733b3f90c686605aa7eec8c4996032"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -1069,7 +1066,7 @@ checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81"
 dependencies = [
  "proc-macro2",
  "quote",
- "syn 2.0.52",
+ "syn 2.0.53",
 ]
 
 [[package]]
@@ -1172,17 +1169,17 @@ dependencies = [
 
 [[package]]
 name = "trybuild"
-version = "1.0.89"
+version = "1.0.90"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9a9d3ba662913483d6722303f619e75ea10b7855b0f8e0d72799cf8621bb488f"
+checksum = "2aa6f84ec205ebf87fb7a0abdbcd1467fa5af0e86878eb6d888b78ecbb10b6d5"
 dependencies = [
- "basic-toml",
  "glob",
  "once_cell",
  "serde",
  "serde_derive",
  "serde_json",
  "termcolor",
+ "toml",
 ]
 
 [[package]]
@@ -1211,7 +1208,7 @@ version = "0.0.16"
 dependencies = [
  "env_logger",
  "expectorate",
- "heck",
+ "heck 0.4.1",
  "log",
  "paste",
  "proc-macro2",
@@ -1222,7 +1219,7 @@ dependencies = [
  "schemars",
  "serde",
  "serde_json",
- "syn 2.0.52",
+ "syn 2.0.53",
  "thiserror",
  "unicode-ident",
  "uuid",
@@ -1238,7 +1235,7 @@ dependencies = [
  "serde",
  "serde_json",
  "serde_tokenstream",
- "syn 2.0.52",
+ "syn 2.0.53",
  "typify-impl",
 ]
 
@@ -1252,7 +1249,7 @@ dependencies = [
  "schemars",
  "serde",
  "serde_json",
- "syn 2.0.52",
+ "syn 2.0.53",
  "typify",
 ]
 
@@ -1341,7 +1338,7 @@ dependencies = [
  "once_cell",
  "proc-macro2",
  "quote",
- "syn 2.0.52",
+ "syn 2.0.53",
  "wasm-bindgen-shared",
 ]
 
@@ -1363,7 +1360,7 @@ checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283"
 dependencies = [
  "proc-macro2",
  "quote",
- "syn 2.0.52",
+ "syn 2.0.53",
  "wasm-bindgen-backend",
  "wasm-bindgen-shared",
 ]
@@ -1638,5 +1635,5 @@ checksum = "b3c129550b3e6de3fd0ba67ba5c81818f9805e58b8d7fee80a3a59d2c9fc601a"
 dependencies = [
  "proc-macro2",
  "quote",
- "syn 2.0.52",
+ "syn 2.0.53",
 ]
diff --git a/cargo-typify/Cargo.toml b/cargo-typify/Cargo.toml
index ac203bf..4aef1ed 100644
--- a/cargo-typify/Cargo.toml
+++ b/cargo-typify/Cargo.toml
@@ -14,7 +14,7 @@ default-run = "cargo-typify"
 [dependencies]
 typify = { version = "0.0.16", path = "../typify" }
 
-clap = { version = "4.5.1", features = ["derive"] }
+clap = { version = "4.5.3", features = ["derive"] }
 color-eyre = "0.6"
 env_logger = "0.10"
 rustfmt-wrapper = "0.2.1"
diff --git a/typify-impl/Cargo.toml b/typify-impl/Cargo.toml
index 708dcbb..af5e08a 100644
--- a/typify-impl/Cargo.toml
+++ b/typify-impl/Cargo.toml
@@ -15,7 +15,7 @@ quote = "1.0.35"
 regress = "0.9.0"
 schemars = "0.8.16"
 serde_json = "1.0.114"
-syn = { version = "2.0.52", features = ["full"] }
+syn = { version = "2.0.53", features = ["full"] }
 thiserror = "1.0.57"
 unicode-ident = "1.0.12"
 
@@ -28,5 +28,5 @@ rustfmt-wrapper = "0.2.1"
 schema = "0.1.0"
 schemars = { version = "0.8.16", features = ["uuid1"] }
 serde = "1.0.197"
-syn = { version = "2.0.52", features = ["full", "extra-traits"] }
+syn = { version = "2.0.53", features = ["full", "extra-traits"] }
 uuid = "1.7.0"
diff --git a/typify/Cargo.toml b/typify/Cargo.toml
index 3403b61..bc15dd2 100644
--- a/typify/Cargo.toml
+++ b/typify/Cargo.toml
@@ -18,7 +18,7 @@ typify-macro = { version = "0.0.16", path = "../typify-macro", optional = true }
 typify-impl = { version = "0.0.16", path = "../typify-impl" }
 
 [dev-dependencies]
-chrono = { version = "0.4.34", features = ["serde"] }
+chrono = { version = "0.4.35", features = ["serde"] }
 env_logger = "0.10.2"
 expectorate = "1.1.0"
 glob = "0.3.1"
@@ -28,5 +28,5 @@ rustfmt-wrapper = "0.2.1"
 schemars = "0.8.16"
 serde = "1.0.197"
 serde_json = "1.0.114"
-trybuild = "1.0.89"
+trybuild = "1.0.90"
 uuid = { version = "1.7.0", features = ["serde"] }


Test patch:
diff --git a/typify-test/Cargo.toml b/typify-test/Cargo.toml
index 216970c..54f16f9 100644
--- a/typify-test/Cargo.toml
+++ b/typify-test/Cargo.toml
@@ -13,5 +13,5 @@ ipnetwork = { version = "0.20.0", features = ["schemars"] }
 prettyplease = "0.2.16"
 schemars = "0.8.16"
 serde = "1.0.197"
-syn = "2.0.52"
+syn = "2.0.53"
 typify = { path = "../typify" }