David Tolnay
2dbeefb11b
Merge pull request #2935 from Mingun/dedupe-adj-enums
...
Remove code duplication when deriving Deserialize for adjacently tagged enums
2025-09-20 16:33:32 -07:00
David Tolnay
8a3c29ff19
Merge pull request #2986 from dtolnay/didnotwork
...
Remove "did not work" comment from test suite
2025-09-20 12:30:39 -07:00
David Tolnay
defc24d361
Remove "did not work" comment from test suite
2025-09-20 12:23:01 -07:00
Oli Scherer
2316610760
Merge pull request #2929 from Mingun/flatten-enum-tests
...
Add more tests for flatten enums to increase test coverage
2025-09-18 13:15:10 +00:00
Mingun
c09e2bd690
Add tests for flatten unit variant in adjacently tagged (tag + content) enums
2025-09-17 23:53:07 +05:00
Mingun
fe7dcc4cd8
Test all possible orders of map entries for enum-flatten-in-struct representations
2025-09-17 23:51:30 +05:00
Mingun
a20e66e131
Check serialization in flatten::enum_::internally_tagged::unit_enum_with_unknown_fields
2025-09-17 23:50:00 +05:00
Mingun
1c1a5d95cd
Reorder struct_ and newtype tests of adjacently_tagged enums to match order in Enum
2025-09-17 23:48:23 +05:00
David Tolnay
ee3c2372fb
Opt in to generate-macro-expansion when building on docs.rs
2025-09-16 16:29:21 -07:00
Mingun
bfb020d975
Use variant
name for field instead of field
2025-09-17 00:09:51 +05:00
Mingun
6805bba308
Inline variables that used only once
2025-09-17 00:09:14 +05:00
Mingun
2659b94a62
Create deserializer only when needed
2025-09-17 00:08:07 +05:00
Mingun
c451415d9f
Do not duplicate variant deserialization code
2025-09-17 00:07:00 +05:00
Mingun
553a9ff15f
Document functions that are entry points for generating bodies of different deserialization forms
2025-09-17 00:05:53 +05:00
David Tolnay
6f5eb7d207
Merge pull request #2983 from Mingun/fix-test-instructions
...
Fix instructions for testing contributions
2025-09-16 09:24:04 -07:00
Mingun
55615e8f8e
Fix instructions for testing contributions
...
Since separation of serde_core from serde, all doctests lives in serde_core project,
which also does not have the `derive` feature. Following the old instructions does not
run any tests.
2025-09-16 21:15:49 +05:00
David Tolnay
1d7899d671
Release 1.0.225
v1.0.225
2025-09-15 20:43:08 -07:00
David Tolnay
97168d3a24
Touch up PR 2879
2025-09-15 20:38:57 -07:00
David Tolnay
373b11dda7
Merge pull request 2879 from rcrisanti/fix/silence-deprecation-warnings-derive
2025-09-15 20:26:40 -07:00
David Tolnay
69072f2423
Merge pull request 2931 from Mingun/unify-serde-access
2025-09-15 13:22:24 -07:00
David Tolnay
5b37e8a531
Merge pull request #2980 from dtolnay/private
...
Use differently named __private module per patch release
2025-09-15 13:20:54 -07:00
Mingun
b47f4dfa96
Unify access to the serde namespace
...
In other places `_serde` name is used to access the `serde` crate, so use it there
2025-09-16 00:36:12 +05:00
David Tolnay
cbe98a9888
Use differently named __private module per patch release
2025-09-15 09:53:14 -07:00
David Tolnay
957996f5fb
Make all use of __private go through interpolation
2025-09-15 09:48:26 -07:00
David Tolnay
169988206a
Release 1.0.224
v1.0.224
2025-09-15 08:46:21 -07:00
David Tolnay
840f6ec9b8
Merge pull request #2979 from dtolnay/private
...
Mark every trait impl for a private type with do_not_recommend
2025-09-15 08:45:06 -07:00
David Tolnay
bf9ebea392
Mark every trait impl for a private type with do_not_recommend
2025-09-14 19:47:36 -07:00
David Tolnay
6c316d7cb5
Release 1.0.223
v1.0.223
2025-09-14 13:20:31 -07:00
David Tolnay
a4ac0c2bc6
Merge pull request #2978 from dtolnay/htmlrooturl
...
Change serde_core's html_root_url to docs.rs/serde_core
2025-09-14 13:19:52 -07:00
David Tolnay
ed76364f87
Change serde_core's html_root_url to docs.rs/serde_core
2025-09-14 12:54:38 -07:00
David Tolnay
57e21a1afa
Release 1.0.222
v1.0.222
2025-09-14 11:09:08 -07:00
David Tolnay
bb58726133
Merge pull request #2950 from aytey/fix_lifetime_issue_2024
...
Fix temporary value lifetime in `serialize_struct`
2025-09-14 11:08:16 -07:00
David Tolnay
3f6925125b
Delete unneeded field of MapDeserializer
2025-09-14 08:39:57 -07:00
David Tolnay
fd4decf2fe
Merge pull request #2976 from dtolnay/content
...
Move Content's Deserialize impl from serde_core to serde
2025-09-14 08:39:46 -07:00
David Tolnay
00b1b6b2b5
Move Content's Deserialize impl from serde_core to serde
2025-09-14 08:35:53 -07:00
David Tolnay
cf141aa8c7
Move Content's Clone impl from serde_core to serde
2025-09-14 08:35:32 -07:00
David Tolnay
ff3aee490a
Release 1.0.221
v1.0.221
2025-09-13 17:25:20 -07:00
David Tolnay
10bcfc0047
Merge pull request #2975 from dtolnay/integer128
...
Deprecate serde_if_integer128 macro
2025-09-13 17:25:14 -07:00
David Tolnay
2f03899197
Deprecate serde_if_integer128 macro
2025-09-13 17:19:10 -07:00
David Tolnay
3bea3b6989
Move serde_if_integer128 macro to serde
2025-09-13 17:12:58 -07:00
David Tolnay
85bf29c446
Merge pull request #2973 from dtolnay/timings
...
Illustrate build timings in serde_core readme
2025-09-13 17:12:51 -07:00
David Tolnay
900c922f41
Illustrate build timings in serde_core readme
2025-09-13 17:09:47 -07:00
David Tolnay
9cf3f2ed7d
Merge pull request #2974 from dtolnay/patchserdecore
...
Patch serde_core at workspace level
2025-09-13 17:04:36 -07:00
David Tolnay
1ffbeb9516
Patch serde_core at workspace level
2025-09-13 16:59:44 -07:00
David Tolnay
1051c5e6b7
Enforce trybuild >= 1.0.108
...
Older versions produce slightly differently normalized output
when run against 1.90.0+ Rust compiler.
2025-09-13 14:49:14 -07:00
David Tolnay
be255d62c8
Release 1.0.220
v1.0.220
2025-09-13 14:45:43 -07:00
David Tolnay
263a1dbdd7
Link to serde.rs without trailing slash
2025-09-13 14:40:22 -07:00
David Tolnay
23dea60e1a
Merge pull request #2971 from dtolnay/serdecoreci
...
Add CI coverage of serde_core
2025-09-13 14:40:13 -07:00
David Tolnay
690785f129
Add CI coverage of serde_core
2025-09-13 14:36:11 -07:00
David Tolnay
69aa109fd3
Merge pull request #2970 from dtolnay/coredoctest
...
Fix serde_core doc tests
2025-09-13 14:36:00 -07:00