David Tolnay
97a98a7031
Test only deser for untagged unit visit_none
2019-11-24 15:59:08 -08:00
Árpád Goretity
59b99d2d60
Move test for untagged-variant-from-unit where it belongs
2019-11-07 21:18:12 +01:00
Árpád Goretity
c796daed7c
Fix test for untagged unit variant
2019-11-07 12:58:09 +01:00
Árpád Goretity
6e2c385fa5
Allow untagged unit variants to deserialize from Visitor::visit_none()
2019-11-06 17:31:27 +01:00
David Tolnay
4eb580790d
Require serde_derive version to be the same as serde version
...
Without this, Cargo could combine new serde_derive with old serde
resulting in generated code that refers to types that don't exist yet in
the serde version.
2019-11-02 15:17:09 -07:00
David Tolnay
a2c83d754b
Merge pull request #1664 from mathstuf/minimal-versions-compat
...
serde_derive: require the same version as serde
2019-11-02 12:04:20 -07:00
Ben Boeckel
6f946b20ec
serde_derive: require the same version as serde
...
This ensures that all features supported by serde are always available
through the derive macro provided through the feature flag.
Fixes : #1647
2019-11-01 19:47:31 -04:00
David Tolnay
2ceabad360
Release 1.0.102
2019-10-27 13:39:27 -07:00
David Tolnay
a00aee1495
Use a dedicated cfg for PathBuf::into_boxed_path
2019-10-27 13:38:25 -07:00
David Tolnay
4e31c9984d
Merge pull request #1656 from heftig/path-improvements
...
Improve Path deserialization
2019-10-27 13:37:12 -07:00
Jan Alexander Steffens (heftig)
b8772a1e40
Deserialize Box<Path> through PathBuf::into_boxed_path
...
Including Rc<Path> et al.
Fixes https://github.com/serde-rs/serde/issues/1633
2019-10-22 22:31:51 +02:00
Jan Alexander Steffens (heftig)
42990d8264
Deserialize PathBuf from bytes
...
&Path already allows this. Also complete the tests for Path/PathBuf.
2019-10-22 22:30:53 +02:00
David Tolnay
cf31418555
Resolve unused_self lint
2019-10-17 11:05:30 -04:00
David Tolnay
5db72b8ad9
Ignore must_use_candidate pedantic lint
2019-10-17 11:05:28 -04:00
David Tolnay
fe8f8bcf7b
Address needless_doctest_main lint in serde_test
2019-10-08 21:23:17 -07:00
David Tolnay
d4d737de8d
Resolve redundant_clone lint
2019-10-08 21:16:45 -07:00
David Tolnay
52f6e96ee8
Ignore needless_doctest_main lint
2019-10-08 21:15:08 -07:00
David Tolnay
44fa7b0f6b
Remove unused rustc-serialize dependency from test suite
2019-10-04 21:29:06 -04:00
David Tolnay
bda561df4e
Update test suite to nightly-2019-10-04
2019-10-03 21:45:09 -04:00
David Tolnay
8955420baf
Update test suite to nightly-2019-10-02
2019-10-02 09:45:00 -04:00
David Tolnay
21ee256911
Update test suite to nightly-2019-09-30
2019-09-30 15:56:04 -04:00
David Tolnay
4aba6fae78
Release 1.0.101
2019-09-16 00:32:28 -07:00
David Tolnay
fe06bc2f88
More concise explanation of allow(unused_variables)
2019-09-16 00:31:23 -07:00
David Tolnay
8dfb4cd02f
Merge pull request #1617 from arilotter/master
...
Fix unused variable warning when field of adjacently tagged enum is skipped
2019-09-15 23:51:39 -07:00
David Tolnay
d1ade37827
Ignore new too_many_lines lint
2019-09-10 23:15:59 -07:00
Ari Lotter
9de49241fb
Bug fix for #1610
...
Allow unused variables in tuple in AdjacentlyTagged serializer
2019-09-09 10:43:05 -04:00
David Tolnay
b24d50160a
Remove use of ref keyword from serde_derive
2019-09-07 23:16:02 -07:00
David Tolnay
e46463e69f
Add tests for attribute parse errors
2019-09-07 22:57:27 -07:00
David Tolnay
a3157c9572
Produce errors on attr that fails to parse as Meta
2019-09-07 22:46:50 -07:00
David Tolnay
0d4722680a
Use flatten() to iterate serde meta items
2019-09-07 22:44:25 -07:00
David Tolnay
7ab12597bb
Un-wrap error message strings for better grepping
2019-09-07 22:40:24 -07:00
David Tolnay
b86a46c83c
Factor skipping in newtype variants into effective_style
2019-09-07 22:16:56 -07:00
David Tolnay
187a0a3ec0
Format with rustfmt 2019-08-19
2019-09-07 22:16:49 -07:00
David Tolnay
111c18dec3
Merge pull request #1622 from Xaeroxe/fix-new-types
...
Fix (de)serialization of new types where the internal type is skipped
2019-09-07 22:16:40 -07:00
David Tolnay
7a2b137912
Reuse span in default deserialize_with path for Cows
2019-09-07 20:24:59 -07:00
David Tolnay
791b9fbe81
Release serde_derive_internals
2019-09-07 20:14:30 -07:00
David Tolnay
0fdc0257aa
Sort Postcard in the same order as on the website
2019-09-07 19:10:48 -07:00
David Tolnay
b6a77c4413
Release 1.0.100
2019-09-07 18:55:50 -07:00
David Tolnay
33438850a6
Merge pull request #1620 from dtolnay/error
...
Export std error type so no_std data formats don't need a "std" feature
2019-09-07 18:54:34 -07:00
Jake Kiesel
fcbb3d3783
Add support for other enum representations
2019-09-07 11:43:53 -06:00
Jake Kiesel
acc8640c1e
Fix (de)serialization of new types where the internal type is skipped
2019-09-07 03:20:43 -06:00
David Tolnay
c083cfd65e
Export std error type so downstream doesn't need "std" feature
2019-09-04 20:20:36 -07:00
David Tolnay
4cea81f93f
Merge pull request #1615 from jamesmunns/patch-1
...
Add Postcard to the list of Serde Data Formats
2019-08-28 10:17:43 -07:00
James Munns
2d36be753a
Add Postcard to the list of Serde Data Formats
2019-08-28 12:23:54 +02:00
David Tolnay
738d29eaa9
Update serde_derive_internals to syn 1.0
2019-08-26 12:29:45 -07:00
David Tolnay
b536fb67a4
Merge pull request #1604 from UnHumbleBen/patch-1
...
Fixed a typo
2019-08-19 03:10:49 -07:00
Benjamin Lee
b10c23a950
Fixed a typo
2019-08-18 22:37:28 -07:00
David Tolnay
85a5cf7cb1
Document serde_derive minimum rustc
2019-08-18 18:31:40 -07:00
David Tolnay
192f5cd647
Release 1.0.99
2019-08-16 11:50:19 -07:00
David Tolnay
7dceee64fe
Merge pull request #1591 from dtolnay/up
...
Update to syn/quote 1.0
2019-08-16 11:49:33 -07:00