David Tolnay
ab90fbc7c9
Apply 'cargo fix --edition'
2023-07-30 21:42:57 -07:00
David Tolnay
3eec111e8f
Delete support for compilers without crate::-based module system
2023-07-30 21:42:57 -07:00
David Tolnay
9388433642
Rename 'try!' macro to 'tri!' in preparation for 2018 edition
...
Because 'try' is a keyword in 2018+.
2023-07-30 21:29:53 -07:00
David Tolnay
ba12070665
Merge pull request #2545 from dtolnay/up
...
Delete support for rustc versions 1.19 through 1.27
2023-07-30 21:25:58 -07:00
David Tolnay
a57a324d72
Delete support for compilers without NonZero integer types
2023-07-30 21:14:32 -07:00
David Tolnay
92e91b3557
Delete support for compilers without Iterator::try_for_each
2023-07-30 21:14:31 -07:00
David Tolnay
4dcf791706
Delete support for compilers without inclusive range accessors
2023-07-30 21:11:43 -07:00
David Tolnay
e77900fb94
Update integer128 case in build script
2023-07-30 21:11:09 -07:00
David Tolnay
1b14cadf20
Delete support for compilers without core::ops::Bound
2023-07-30 21:11:02 -07:00
David Tolnay
4f59cd217a
Delete support for compilers without core::time
2023-07-30 21:10:49 -07:00
David Tolnay
27c8b2d66a
Delete support for compilers without dynamically sized Rc construction
2023-07-30 20:48:27 -07:00
David Tolnay
89976c2712
Delete support for compilers without PathBuf::into_boxed_path
2023-07-30 20:48:27 -07:00
David Tolnay
c91737fef1
Delete support for compilers without CString::into_boxed_c_str
2023-07-30 20:48:27 -07:00
David Tolnay
a100719bc6
Delete support for compilers without core::cmp::Reverse
2023-07-30 20:48:27 -07:00
David Tolnay
9a0e149225
Sort version checks in build.rs
2023-07-30 20:48:27 -07:00
David Tolnay
9350927903
Delete support for compilers without std::collections::Bound
2023-07-30 20:48:27 -07:00
David Tolnay
677c13a4ec
Merge pull request #2544 from dtolnay/testprecompiled
...
Add CI job to run test suite against precompiled serde_derive
2023-07-30 18:58:13 -07:00
David Tolnay
ee8e1ee7ff
Add CI job to run test suite against precompiled serde_derive
2023-07-30 18:50:16 -07:00
David Tolnay
f969080b9f
Pull in syn fix that makes serde test suite independent of "full" feature
...
See https://github.com/dtolnay/syn/pull/1491 .
2023-07-30 17:39:44 -07:00
David Tolnay
c2b16bfbb0
Release 1.0.179
2023-07-30 17:20:10 -07:00
David Tolnay
e7df53701c
Resolve doc_markdown clippy lint from PR 2448
...
warning: item in documentation is missing backticks
--> test_suite/tests/test_annotations.rs:2870:25
|
2870 | /// Reaches crate::private:🇩🇪 :content::VariantDeserializer::tuple_variant
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
= note: `-W clippy::doc-markdown` implied by `-W clippy::pedantic`
help: try
|
2870 | /// Reaches `crate::private:🇩🇪 :content::VariantDeserializer::tuple_variant`
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: item in documentation is missing backticks
--> test_suite/tests/test_annotations.rs:2871:17
|
2871 | /// Content::Seq case
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
help: try
|
2871 | /// `Content::Seq` case
| ~~~~~~~~~~~~~~
warning: item in documentation is missing backticks
--> test_suite/tests/test_annotations.rs:2872:21
|
2872 | /// via FlatMapDeserializer::deserialize_enum
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
help: try
|
2872 | /// via `FlatMapDeserializer::deserialize_enum`
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: item in documentation is missing backticks
--> test_suite/tests/test_annotations.rs:2894:25
|
2894 | /// Reaches crate::private:🇩🇪 :content::VariantDeserializer::struct_variant
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
help: try
|
2894 | /// Reaches `crate::private:🇩🇪 :content::VariantDeserializer::struct_variant`
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: item in documentation is missing backticks
--> test_suite/tests/test_annotations.rs:2895:17
|
2895 | /// Content::Seq case
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
help: try
|
2895 | /// `Content::Seq` case
| ~~~~~~~~~~~~~~
warning: item in documentation is missing backticks
--> test_suite/tests/test_annotations.rs:2896:21
|
2896 | /// via FlatMapDeserializer::deserialize_enum
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
help: try
|
2896 | /// via `FlatMapDeserializer::deserialize_enum`
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: item in documentation is missing backticks
--> test_suite/tests/test_annotations.rs:2921:25
|
2921 | /// Reaches crate::private:🇩🇪 :content::VariantDeserializer::struct_variant
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
help: try
|
2921 | /// Reaches `crate::private:🇩🇪 :content::VariantDeserializer::struct_variant`
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
warning: item in documentation is missing backticks
--> test_suite/tests/test_annotations.rs:2922:17
|
2922 | /// Content::Map case
| ^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
help: try
|
2922 | /// `Content::Map` case
| ~~~~~~~~~~~~~~
warning: item in documentation is missing backticks
--> test_suite/tests/test_annotations.rs:2923:21
|
2923 | /// via FlatMapDeserializer::deserialize_enum
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#doc_markdown
help: try
|
2923 | /// via `FlatMapDeserializer::deserialize_enum`
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2023-07-30 16:15:29 -07:00
David Tolnay
02c34e490b
Resolve redundant_field_names clippy lint from PR 2448
...
warning: redundant field names in struct initialization
--> serde/src/private/ser.rs:1278:13
|
1278 | map: map,
| ^^^^^^^^ help: replace it with: `map`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_field_names
= note: `-W clippy::redundant-field-names` implied by `-W clippy::all`
2023-07-30 16:07:27 -07:00
David Tolnay
427c839b3d
Merge pull request #2448 from Mingun/ser-flatten-enums
...
Implement serialization of tuple variants of flatten enums
2023-07-30 16:02:37 -07:00
David Tolnay
48aa054f53
Release 1.0.178
2023-07-28 16:09:39 -07:00
David Tolnay
3616860203
Delete broken symlink from precompiled derive sources
2023-07-28 16:09:22 -07:00
David Tolnay
861b0dfea2
Consistently list StdError under 'Re-exports' heading of rustdoc
2023-07-28 16:06:49 -07:00
David Tolnay
8b3d71ae2d
Merge pull request #2541 from dtolnay/de-core-error
...
Fix `serde:🇩🇪 :StdError` in no-std unstable build
2023-07-28 16:05:14 -07:00
David Tolnay
ff5442cd9e
Add no-std unstable build in CI
2023-07-28 16:00:07 -07:00
David Tolnay
92d686f9a5
Fix serde: 🇩🇪 :StdError in no-std unstable build
2023-07-28 15:58:57 -07:00
David Tolnay
7b09cccd77
Merge pull request #2539 from dtolnay/questionmark
...
Replace `try!` with `?` in serde_derive
2023-07-27 19:20:15 -07:00
David Tolnay
6f1f38d046
Replace 'try!' with '?' in serde_derive
2023-07-27 19:16:11 -07:00
David Tolnay
db8f06467b
Eliminate workaround for pre-1.17 rustc in serde_derive
...
The oldest compiler supported by serde_derive by this point is 1.56.
2023-07-27 19:05:57 -07:00
David Tolnay
91ec1c290f
Enforce question mark not used in serde crate yet
...
Question mark regresses compile time by 6.5–7.5%.
2023-07-27 19:02:11 -07:00
David Tolnay
0676673ca5
Release 1.0.177
2023-07-27 10:51:22 -07:00
David Tolnay
7a4335d664
Merge pull request #2536 from jplatte/jplatte/error-span
...
Update error span for attribute / data kind mismatches
2023-07-27 10:50:26 -07:00
Jonas Platte
31a0e73489
Update error span for attribute / data kind mismatches
2023-07-27 10:47:45 +02:00
David Tolnay
74fe70855f
Ignore return_self_not_must_use pedantic clippy lint
...
warning: missing `#[must_use]` attribute on a method returning `Self`
--> serde_derive_internals/src/attr.rs:204:5
|
204 | / pub fn or(self, other_rules: Self) -> Self {
205 | | Self {
206 | | serialize: self.serialize.or(other_rules.serialize),
207 | | deserialize: self.deserialize.or(other_rules.deserialize),
208 | | }
209 | | }
| |_____^
|
= help: consider adding the `#[must_use]` attribute to the method or directly to the `Self` type
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
= note: `-W clippy::return-self-not-must-use` implied by `-W clippy::pedantic`
warning: missing `#[must_use]` attribute on a method returning `Self`
--> serde_derive_internals/src/case.rs:112:5
|
112 | / pub fn or(self, rule_b: Self) -> Self {
113 | | match self {
114 | | None => rule_b,
115 | | _ => self,
116 | | }
117 | | }
| |_____^
|
= help: consider adding the `#[must_use]` attribute to the method or directly to the `Self` type
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#return_self_not_must_use
2023-07-27 00:51:57 -07:00
David Tolnay
e74925bc43
Merge pull request #1695 from jplatte/rename_all_fields
...
Add #[serde(rename_all_fields = "foo")] attribute
2023-07-27 00:45:45 -07:00
Jonas Platte
56be1c203e
Pass RenameRule, RenameAllRules by value
2023-07-27 09:19:42 +02:00
Jonas Platte
2f9bf4d3eb
Add #[serde(rename_all_fields = "foo")] attribute
2023-07-27 09:19:42 +02:00
David Tolnay
ad94aed753
Merge pull request #2535 from dtolnay/baretrait
...
Restore bare_trait_objects lint within serde_derive code
2023-07-26 14:26:02 -07:00
David Tolnay
30db83fc44
Restore bare_trait_objects lint within serde_derive code
2023-07-26 14:18:25 -07:00
David Tolnay
b0f7b00e1f
Resolve manual_string_new pedantic clippy lint
...
warning: empty String is being created manually
--> test_suite/tests/test_annotations.rs:2280:29
|
2280 | let data = Data::C { t: "".to_string() };
| ^^^^^^^^^^^^^^ help: consider using: `String::new()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_string_new
= note: `-W clippy::manual-string-new` implied by `-W clippy::pedantic`
2023-07-26 13:46:28 -07:00
David Tolnay
7255e192d8
Delete unused statement from PR 2266 test
2023-07-26 13:45:49 -07:00
David Tolnay
2102e1aa42
Format PR 2266 tests with rustfmt
2023-07-26 13:41:56 -07:00
David Tolnay
85d5c1fd38
Release 1.0.176
2023-07-26 13:37:44 -07:00
David Tolnay
b789286bc3
Merge pull request #2266 from flisky/master
...
fix: don't check skipped variant with internal tag
2023-07-26 13:36:33 -07:00
David Tolnay
a6a8a334f7
Add CI on macOS for the non-precompiled codepath
2023-07-26 01:03:20 -07:00
David Tolnay
78a11a27b6
Skip an extra trip through filesystem on the critical path
2023-07-26 00:58:34 -07:00
David Tolnay
d2d7bad04a
Improve error message on missing serde_derive exe
2023-07-26 00:52:09 -07:00