Commit Graph

  • f3d50e5209 Use FromIterator to fill HashMap Mingun 2023-05-09 12:56:04 +05:00
  • ab21d4d017 Merge assert_de_tokens and assert_ser_tokens into assert_tokens Mingun 2023-05-09 12:53:41 +05:00
  • f7c5d93e6a Pull up types from function into module, unify style Mingun 2023-05-09 14:27:03 +05:00
  • 52a7d40e6e Rename test types so their names reflects, what's tested Mingun 2023-05-09 12:48:27 +05:00
  • 348bc6b257 Move flatten enum tests to a dedicated module Mingun 2023-05-09 11:50:46 +05:00
  • 03da66c805 Release 1.0.171 v1.0.171 David Tolnay 2023-07-09 18:05:02 -07:00
  • f75426f47e Inline visitor_expr of unit struct deserialize impl David Tolnay 2023-07-09 18:03:58 -07:00
  • 662fc3861c Add test of const-generic unit struct where-clause edge case David Tolnay 2023-07-09 18:01:33 -07:00
  • 28c10020b9 Merge pull request #2500 from Baptistemontan/derive_generic_unit_struct David Tolnay 2023-07-09 17:52:12 -07:00
  • 89c8d85de9 allow Deserialize derive to handle generic unit structs Baptiste de Montangon 2023-07-10 01:31:40 +02:00
  • 6502838f27 Release 1.0.170 v1.0.170 David Tolnay 2023-07-09 11:17:30 -07:00
  • c93a0f335a Merge pull request #2499 from dtolnay/strsuffix David Tolnay 2023-07-09 11:16:31 -07:00
  • 8264e002a7 Reject suffixed string literals inside serde attrs David Tolnay 2023-07-09 10:55:43 -07:00
  • 117ef22142 Add ui test with suffixed string literals in attribute David Tolnay 2023-07-09 11:09:20 -07:00
  • 3fb5e71c33 Release 1.0.169 v1.0.169 David Tolnay 2023-07-08 21:09:08 -07:00
  • 296db177e2 Pull in syn fix for issue 2414 David Tolnay 2023-07-08 21:08:22 -07:00
  • e4a4389177 Delete excessive tests of adjacently tagged non-string keys David Tolnay 2023-07-08 18:17:41 -07:00
  • 7aa0453c3b Merge pull request 2475 from Baptistemontan/master David Tolnay 2023-07-08 18:02:16 -07:00
  • 09b78b24e9 Release 1.0.168 v1.0.168 David Tolnay 2023-07-08 17:52:06 -07:00
  • a622b8a74a Merge pull request #2495 from dtolnay/cautious David Tolnay 2023-07-08 17:51:16 -07:00
  • 399ef081ec Allow larger preallocated capacity for smaller elements David Tolnay 2023-07-08 13:34:23 -07:00
  • 3686277e14 Merge pull request #2436 from Mingun/flatten-ignored-any David Tolnay 2023-07-06 16:35:10 -07:00
  • 807bd20a64 Release 1.0.167 v1.0.167 David Tolnay 2023-07-06 16:25:48 -07:00
  • ed9a140348 Merge pull request #2444 from Mingun/dedup David Tolnay 2023-07-06 16:25:15 -07:00
  • 2de7c2bea2 Resolve redundant_static_lifetimes clippy lint from PR 2471 David Tolnay 2023-07-06 16:17:38 -07:00
  • e6a4a3772e Delete unuseful RangeFull impls David Tolnay 2023-07-06 16:10:21 -07:00
  • 0fca04e1a6 Merge pull request 2471 from tbu-/pr_more_ranges David Tolnay 2023-07-06 16:09:13 -07:00
  • 92bfc8d3af Merge pull request #2290 from Mingun/enum-tests-and-cleanup David Tolnay 2023-07-06 16:02:27 -07:00
  • fa0312ac45 More formatting of doc tests and example code David Tolnay 2023-07-06 15:45:53 -07:00
  • 1920b694aa Declare required automod dev-dependency David Tolnay 2023-07-06 15:48:44 -07:00
  • 3bfd41d624 Format doctests using rustfmt's format_code_in_doc_comments David Tolnay 2023-07-06 15:42:15 -07:00
  • 290449f19b Fix doc tests to work whether or not serde derive feature is used David Tolnay 2023-07-06 15:23:54 -07:00
  • 3a1f387e69 Merge pull request #2493 from dtolnay/docedition David Tolnay 2023-07-06 15:40:03 -07:00
  • 541603ac94 Fix doc tests for 2021 edition David Tolnay 2023-07-06 15:36:17 -07:00
  • 0666fbfa20 Update documentation example code to 2021 edition David Tolnay 2023-07-06 15:17:05 -07:00
  • ea071ae1d4 Add CI job using minimal-versions David Tolnay 2023-07-05 10:01:33 -07:00
  • 992a01bad2 Sort dependency features in Cargo.toml David Tolnay 2023-07-04 12:12:31 -07:00
  • d640b5624f Add no-alloc category to the macro crate also David Tolnay 2023-07-03 14:05:32 -07:00
  • 48479e4bae Release 1.0.166 v1.0.166 David Tolnay 2023-07-03 11:33:19 -07:00
  • dfaf48bc09 Add no-std::no-alloc category David Tolnay 2023-07-03 11:32:55 -07:00
  • dcbc3e0162 Release 1.0.165 v1.0.165 David Tolnay 2023-07-03 04:21:59 -07:00
  • 0289d31724 Fix -Zminimal-versions build David Tolnay 2023-07-03 04:20:25 -07:00
  • 015e39776f No need for single-element vec for chaining one element David Tolnay 2023-07-02 21:11:09 -07:00
  • 6a9a21f178 Resolve useless_conversion clippy lint in test David Tolnay 2023-07-02 21:10:02 -07:00
  • 81ac54b20d Resolve redundant_closure_call clippy lint David Tolnay 2023-07-02 21:04:48 -07:00
  • 6b4e75520a Resolve explicit_iter_loop pedantic clippy lint David Tolnay 2023-07-02 21:03:20 -07:00
  • b053b4f492 Touch up early return in Enum checks David Tolnay 2023-07-02 21:08:29 -07:00
  • 4cf1fec575 Replace several linked variables with enumeration for tuples Mingun 2023-05-07 01:28:47 +05:00
  • ee7d77defa Replace several linked variables with enumeration for structs Mingun 2023-05-07 01:12:49 +05:00
  • d0dfc4577e Replace enum with boolean parameter Mingun 2023-05-06 23:25:28 +05:00
  • bbbd1d24c9 Move deserialize_generated_identifier out from if because the call is same in both arms Mingun 2023-05-01 01:49:11 +05:00
  • fb3a9e0d7c Simplify check for missing fields Mingun 2023-05-06 22:53:29 +05:00
  • 5ffebeb6ef Actually, field_names_idents can be calculated using the same code in both cases Mingun 2023-05-01 01:45:37 +05:00
  • 75db73066b Inline deserialize_struct_as_map_visitor and deserialize_struct_as_struct_visitor Mingun 2023-05-01 01:26:56 +05:00
  • 2796833c82 Pull up call to deserialize_map because it's identical Mingun 2020-10-01 13:29:39 +05:00
  • 95730dc7f7 Reorder variables to match order in final quote! Mingun 2023-05-01 02:43:25 +05:00
  • 795261919f Generate visit_seq only when needed Mingun 2023-05-01 02:08:10 +05:00
  • 3783a30ae7 Remove TaggedContent, replace it by a tuple Mingun 2022-10-02 19:34:33 +05:00
  • b61ec84886 Remove implementation of DeserializeSeed for TaggedContentVisitor Mingun 2022-10-02 21:12:02 +05:00
  • 780a461d92 Generate one deserializer rather than in each arm Mingun 2020-10-26 22:06:00 +05:00
  • c0ba323166 Support a manual trigger on CI workflow David Tolnay 2023-06-23 22:50:52 -07:00
  • 20a48c9580 Remove .clippy.toml in favor of respecting rust-version from Cargo.toml David Tolnay 2023-06-15 18:26:50 -07:00
  • 09938803af Resolve redundant_static_lifetimes clippy lint David Tolnay 2023-06-15 18:29:09 -07:00
  • 6d0b43a220 Resolve redundant_field_names clippy lint David Tolnay 2023-06-15 18:27:58 -07:00
  • c604bdbfe4 Clarified tokens that represents tag and content for integer identifiers Baptiste de Montangon 2023-06-12 17:17:15 +02:00
  • 9fef892f6d fixed difference in error message for adjacently tagged enums Baptiste de Montangon 2023-06-12 16:02:19 +02:00
  • b1c7db47b8 Adjancently tagged enum field is determined with visit_identifier instead of only visit_str Baptiste de Montangon 2023-06-12 15:27:28 +02:00
  • e76e87a430 Add Serialize/Deserialize impls for Range{From,Full,To} Tobias Bucher 2023-06-09 15:11:44 +02:00
  • 8a4dfa7231 Merge pull request #2466 from Mingun/fix-de-count-of-field David Tolnay 2023-06-07 22:13:08 -07:00
  • 107018c628 Release 1.0.164 v1.0.164 David Tolnay 2023-06-07 22:05:07 -07:00
  • a398237930 Point out serde(untagged) variants which are out of order David Tolnay 2023-06-07 21:48:16 -07:00
  • b63c65d7f5 Merge pull request #2470 from dtolnay/contentref David Tolnay 2023-06-07 21:38:49 -07:00
  • f60324e883 Reuse a single ContentRefDeserializer throughout untagged enum deserialization David Tolnay 2023-06-07 21:33:11 -07:00
  • 361c23a09a Simplify enumerate().find(...) -> Iterator::position David Tolnay 2023-06-07 21:23:31 -07:00
  • 43b23c7ea0 Format PR 2403 with rustfmt David Tolnay 2023-06-07 21:18:30 -07:00
  • 6081497506 Resolve semicolon_if_nothing_returned pedantic clippy lint David Tolnay 2023-06-07 21:17:16 -07:00
  • 48e5753e76 Allowed Enum variants to be individually marked as untagged (#2403) David Ewert 2023-06-07 20:58:59 -07:00
  • bbba632ab3 Revert "Ui tests with compile_error resolved at call site" David Tolnay 2023-06-07 20:50:51 -07:00
  • e77db40b8d Ui tests with compile_error resolved at call site David Tolnay 2023-06-07 20:02:04 -07:00
  • 2c1f62d4b4 Fix incorrect count of fields passed to tuple deserialization methods Mingun 2023-05-27 17:17:00 +05:00
  • 1aebdc2760 Release serde_derive_internals 0.28.0 David Tolnay 2023-05-25 08:20:10 -07:00
  • 705e58be8c Merge pull request #2464 from serde-rs/combine David Tolnay 2023-05-25 08:19:16 -07:00
  • 7c2c12aa43 Use syn::Error's combine() API instead of Vec<syn::Error> David Tolnay 2023-05-25 08:09:24 -07:00
  • a0f850f15b Show error details during miri setup in CI David Tolnay 2023-05-23 08:29:47 -07:00
  • fccb9499bc Release 1.0.163 v1.0.163 David Tolnay 2023-05-10 00:47:53 -07:00
  • a139ab2572 Adjust PR 2446 with less overgeneralized name David Tolnay 2023-05-10 00:45:48 -07:00
  • 1d910a484c Format with rustfmt 1.5.2-nightly David Tolnay 2023-05-10 00:40:39 -07:00
  • ee9166ec97 Revise comments on the FlatMapDeserializer entry taker David Tolnay 2023-05-10 00:39:10 -07:00
  • b5a9eff32e Resolve while_let_on_iterator clippy lint David Tolnay 2023-05-10 00:23:31 -07:00
  • 9441a29663 Merge pull request #2446 from Mingun/dedup2 David Tolnay 2023-05-10 00:13:44 -07:00
  • ab6588ef74 Extract duplicated code into a function Mingun 2020-10-12 00:23:45 +05:00
  • 1d11f03449 Extract logic of taking flattened fields into a function Mingun 2023-05-08 10:11:05 +05:00
  • e11d01fe1d Remove constructors for FlatMapAccess and FlatStructAccess Mingun 2023-05-08 09:40:06 +05:00
  • a901f50850 FlatMapAccess and FlatStructAccess does not need to be public Mingun 2023-05-08 09:37:15 +05:00
  • c399e9c368 Remove FlatInternallyTaggedAccess because it is the same as FlatMapAccess Mingun 2023-05-08 09:25:18 +05:00
  • 25381be0c9 Merge pull request #2442 from taiki-e/derive-build-script David Tolnay 2023-05-05 14:35:09 -07:00
  • ef2a7c753f Remove build script from serde_derive Taiki Endo 2023-05-06 05:34:38 +09:00
  • 99f165b45a Release 1.0.162 v1.0.162 David Tolnay 2023-05-04 18:46:55 -07:00
  • 2fb5560746 Attempt to generate just one copy of TagContentOtherFieldVisitor's field matching David Tolnay 2023-05-04 18:41:24 -07:00
  • bd653ab30c Format PR 2377 with rustfmt David Tolnay 2023-05-04 18:42:02 -07:00