Mingun
ec13eb4ed6
Move body generator for untagged enums to its own module
...
Cut-paste
2025-09-21 20:40:20 +05:00
Mingun
ae00c4acb7
Move body generator for internally tagged enums to its own module
...
Cut-paste
2025-09-21 20:40:20 +05:00
Mingun
85d0b9ccd8
Move body generator for externally tagged enums to its own module
...
Cut-paste
2025-09-21 20:40:20 +05:00
Mingun
e60f62a289
Move body generator for adjacently tagged enums to its own module
...
Cut-paste
2025-09-21 20:40:20 +05:00
Mingun
e04f0ba2de
StructForm::InternallyTagged always instantiated with the same deserializer, so remove that parameter
2025-09-21 20:40:20 +05:00
Mingun
c8184be238
StructForm::Untagged always instantiated with the same deserializer, so remove that parameter
2025-09-21 20:40:19 +05:00
Mingun
896d91f0bb
TupleForm::Untagged always instantiated with the same deserializer, so remove that parameter
2025-09-21 20:40:19 +05:00
Mingun
915686d0ec
deserialize_untagged_newtype_variant
always called with the same deserializer
, so remove that parameter
2025-09-21 20:40:19 +05:00
Mingun
3a682c951b
deserialize_untagged_variant
always called with the same deserializer
, so remove that parameter
2025-09-21 20:40:19 +05:00
Mingun
ca79f61d0f
deserialize_internally_tagged_variant
always called with the same deserializer
, so remove that parameter
2025-09-21 20:40:19 +05:00
Mingun
ddb7c4b30f
Convert split_with_de_lifetime
to method of Parameters
2025-09-21 15:39:11 +05:00
Mingun
4855fb467f
Move code for injecting tagged variants to untagged generator to the place where the decision was made
2025-09-21 15:39:11 +05:00
Mingun
6dffc0b1c8
Remove one-line intermediate function
2025-09-21 15:39:11 +05:00
Mingun
15be2a600a
Remove confusing call to deserialize_untagged_variant in deserialize_internally_tagged_variant
...
deserialize_untagged_variant in that place is called when deserialzie_with attribute is set.
In that case it performs special actions that is better to use explicitly in deserialize_untagged_variant
for readability
2025-09-21 15:39:11 +05:00
David Tolnay
1799547846
Release 1.0.226
v1.0.226
2025-09-20 16:34:44 -07:00
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