Skip to content

chore(deps): bump serde_with from 3.18.0 to 3.22.0 - #2886

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/serde_with-3.21.0
Open

chore(deps): bump serde_with from 3.18.0 to 3.22.0#2886
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/serde_with-3.21.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 15, 2026

Copy link
Copy Markdown
Contributor

Bumps serde_with from 3.18.0 to 3.22.0.

Release notes

Sourced from serde_with's releases.

serde_with v3.22.0

Added

  • Add support for jiff v0.2 behind the new jiff_0_2 feature flag (#936) jiff::SignedDuration works with DurationSeconds and its variants. jiff::Timestamp, jiff::Zoned, and jiff::civil::DateTime work with TimestampSeconds and its variants. Deserializing a jiff::Zoned uses the system time zone, like chrono::DateTime<Local>.

Fixed

  • Extend the GHSA-7gcf-g7xr-8hxj fix to the duplicate-key-prevention collections. The rust::sets_duplicate_value_is_error, rust::maps_duplicate_key_is_error, rust::sets_last_value_wins, and rust::maps_first_key_wins adapters created their backing sets/maps with with_capacity_and_hasher using the raw deserializer size_hint, bypassing the size_hint_cautious cap added in #966 (the clippy.toml disallowed_methods lint only covers Vec::with_capacity, not with_capacity_and_hasher, so these sites were not flagged). Attacker-controlled input claiming a huge length could panic with Hash table capacity overflow before a single element was read. All such constructions now route through size_hint_cautious.

serde_with v3.21.0

Security

  • GHSA-7gcf-g7xr-8hxj: KeyValueMap serialization panics on empty sequence or map entries Bad or attacker controlled values could cause a panic while allocating too large values. Fixed in #966 by setting a maximum allocation size during the creation of collections like Vec or sets.

    Thanks to @​7thParkk for reporting the issue.

Added

  • Add NoneAsZero adapter that maps Option<NonZero*> to a plain integer, encoding None as 0 by @​SAY-5 (#486)

Changed

  • Re-enable link-to-definition on docs.rs (#964)

Fixed

  • Fix some doc links to point to the correct types (#963)
  • Re-enable unused_qualifications and fix the resulting findings by @​lms0806 (#962)

serde_with v3.20.0

Added

  • Add support for base58 encoding, similar to the existing base64 setup by @​mitinarseny (#943)

Fixed

serde_with v3.19.0

Added

... (truncated)

Commits
  • 88f576a Bump version to 3.22.0 (#991)
  • 931e664 Bump version to 3.22.0
  • e26930e Bump github/codeql-action from 4.37.3 to 4.37.4 in the github-actions group (...
  • 92cd5a0 Bump github/codeql-action in the github-actions group
  • 32be66f Guard with_capacity_and_hasher against untrusted size_hint (DoS) (#971)
  • 33871cd Merge branch 'master' into fix/duplicate-key-impls-capacity-overflow
  • bb1e064 Change function position within impl (#968)
  • 202d3dd Improve the time unit macros to remove unnecessary repetition and make the co...
  • b347efb Move the use_duration_signed_ser/*_de macros utils
  • 6590545 chrono_0_4: Implement the same time unit macro cleanup as jiff_0_2
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Jul 15, 2026
@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor
Test Old New Diff
bn_test_bn_test_g1_mul_zero 48333 48333 0.0000 %
p256_test_recover_high_hash_high_recid 5522133 6113352 10.7064 %
bn_test_bn_test_fq_sqrt_100 804031 804031 0.0000 %
sha_test_sha2_v0_10_6_expected_digest_lte_100_times 1359636 1356567 -0.2257 %
k256_test_recover_rand_lte_100 4575423 4582286 0.1500 %
sha_test_sha2_v0_10_9_expected_digest_lte_100_times 1356121 1350540 -0.4115 %
bn_test_bn_test_fq_inverse_100 805631 805631 0.0000 %
bls12_381_tests_test_bls_add_100 10376534 10376534 0.0000 %
bn_test_bn_test_g1_add_neg 299549 299549 0.0000 %
bn_test_bn_test_g1_double_100 735518 735539 0.0029 %
rustcrypto_bigint_test_bigint_mul_mod_special 1785802 1785802 0.0000 %
bn_test_bn_test_g1_add_100 998839 998825 -0.0014 %
sha_test_sha2_v0_10_8_expected_digest_lte_100_times 1352615 1356677 0.3003 %
curve25519_dalek_test_add_then_multiply 2797034 2814541 0.6259 %
bn_test_bn_test_fr_inverse_100 824131 824131 0.0000 %
k256_test_recover_pubkey_infinity 102032 102032 0.0000 %
secp256k1_program_test_verify_rand_lte_100 17121989 17066440 -0.3244 %
bls12_381_tests_test_inverse_fp_100 1205483 1205483 0.0000 %
curve25519_dalek_test_zero_mul 71736 71736 0.0000 %
curve25519_dalek_ng_test_decompressed_noncanonical 195347 195347 0.0000 %
k256_test_point_ops_edge_cases 32652 32652 0.0000 %
k256_test_recover_high_hash_high_recid 2273062 2085026 -8.2724 %
p256_test_verify_rand_lte_100 11990123 11990518 0.0033 %
curve25519_dalek_test_decompressed_expected_value 4561440 4439088 -2.6823 %
bls12_381_tests_test_sqrt_fp2_100 1824833 1628748 -10.7454 %
bls12_381_tests_test_inverse_fp2_100 2230063 2230063 0.0000 %
bn_test_bn_test_fq_partial_ord 186343 186343 0.0000 %
curve25519_dalek_test_ed25519_verify 13351406 13354471 0.0230 %
curve25519_dalek_ng_test_zero_msm 125094 125094 0.0000 %
bls12_381_tests_test_sqrt_fp_100 903438 830577 -8.0649 %
k256_test_verify_rand_lte_100 11754198 11769568 0.1308 %
keccack_test_expected_digest_lte_100 1724861 1724347 -0.0298 %
p256_test_recover_rand_lte_100 15748498 15773448 0.1584 %
rust_crypto_rsa_test_pkcs_verify_100 28991422 29186099 0.6715 %
bls12_381_tests_test_bls_double_100 6310230 6310230 0.0000 %
rustcrypto_bigint_test_bigint_mul_add_residue 1747305 1747305 0.0000 %
secp256k1_program_test_recover_rand_lte_100 5522968 5535250 0.2224 %
curve25519_dalek_test_decompressed_noncanonical 7851 7851 0.0000 %
bn_test_bn_test_g1_msm_edge 411941 411941 0.0000 %
secp256k1_program_test_recover_v0_30_0_rand_lte_100 5474753 5478155 0.0621 %
curve25519_dalek_test_zero_msm 83313 83313 0.0000 %
curve25519_dalek_ng_test_add_then_multiply 4429107 3763581 -15.0262 %
sha_test_sha2_v0_9_9_expected_digest_lte_100_times 1268677 1269427 0.0591 %
p256_test_recover_pubkey_infinity 97138 97138 0.0000 %
curve25519_dalek_ng_test_zero_mul 107715 107715 0.0000 %
k256_test_schnorr_verify 5719552 5716360 -0.0558 %
secp256k1_program_test_verify_v0_30_0_rand_lte_100 17094163 17100847 0.0391 %
sha_test_sha3_expected_digest_lte_100_times 1198969 1198945 -0.0020 %

@dependabot
dependabot Bot force-pushed the dependabot/cargo/serde_with-3.21.0 branch from 3282b3f to 213ebd0 Compare August 8, 2026 00:11
Bumps [serde_with](https://github.com/jonasbb/serde_with) from 3.18.0 to 3.22.0.
- [Release notes](https://github.com/jonasbb/serde_with/releases)
- [Commits](jonasbb/serde_with@v3.18.0...v3.22.0)

---
updated-dependencies:
- dependency-name: serde_with
  dependency-version: 3.21.0
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title chore(deps): bump serde_with from 3.18.0 to 3.21.0 chore(deps): bump serde_with from 3.18.0 to 3.22.0 Aug 12, 2026
@dependabot
dependabot Bot force-pushed the dependabot/cargo/serde_with-3.21.0 branch from 213ebd0 to e696450 Compare August 12, 2026 13:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update Rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants