Commit Graph

447 Commits

Author SHA1 Message Date
vinoca
0dae5db30e Support Container attributes rename_all only for Serialize or Deserialize 2018-12-19 09:46:52 +08:00
David Tolnay
5c24f0f0f3
Clean up some indentation that isn't visible to rustfmt 2018-12-10 22:31:39 -08:00
David Tolnay
c2591e9b39
Release 1.0.82 2018-12-10 22:25:27 -08:00
David Tolnay
16daba8ea9
Format with rustfmt 2018-11-30 2018-12-10 22:09:34 -08:00
David Tolnay
85fbd8793a
Support default attr in deserialize_seq_in_place 2018-12-10 22:09:31 -08:00
Tim Ryan
385a385c62 Adds support for the default attr to tuple variants in enums. 2018-12-11 00:02:50 -05:00
David Tolnay
e1edb0282a
Release 1.0.81 2018-12-07 18:30:35 -08:00
hcpl
034db9f20f Improve overall quality of compile_error! errors
Also updates UI tests.
2018-11-30 02:51:49 +02:00
hcpl
8f3f073017 Use more spans for error messages 2018-11-25 16:44:41 +02:00
David Tolnay
58b3af4c29
Copyright/license headers
The following changes are included:

- Delete per-file license notices at the top of each file.
- Delete the first paragraph of LICENSE-MIT (an inaccurate
  pseudo-copyright line), leaving only the text of the MIT license.

Nothing about the license of Serde code has changed, only our
understanding of how to correctly communicate that license has changed.

This mirrors an equivalent change being applied in the rust-lang/rust
repository.
2018-11-24 15:53:09 -08:00
David Tolnay
9afc5fef11
Format with rustfmt 1.0.0-nightly 2018-11-21 01:13:17 -08:00
David Tolnay
451ee2d78e
Clean up calls to into_iter per into_iter_on_ref lint 2018-11-10 20:10:37 -08:00
David Tolnay
1b45e5766a
Release 1.0.80 2018-10-14 03:08:53 -07:00
David Tolnay
6d58492ad0
Fix links to redirected derive documentation 2018-10-03 23:14:49 -07:00
Richard Dodd
80765eb453 Make suggested changes 2018-09-30 15:17:47 +01:00
Richard Dodd
f1073dca04 Make the recommended changed from code review. 2018-09-30 12:34:52 +01:00
Richard Dodd
da65fe5a52 Some docs 2018-09-29 15:06:23 +01:00
David Tolnay
9956589ed5
Release 1.0.79 2018-09-15 14:40:38 -07:00
David Tolnay
81a3f66d78
Ignore unseparated_literal_suffix pedantic lint 2018-09-11 23:08:13 -07:00
David Tolnay
a8247bc619
Sort the ignored lints in serde_derive 2018-09-11 23:08:00 -07:00
David Tolnay
66a9ccb10e
Ignore renamed_and_removed_lints lint
The recommended replacement involving clippy::all has not been
stabilized yet.
2018-09-11 23:05:33 -07:00
David Tolnay
53fe1b328e
Format with rustfmt 0.99.4 2018-09-11 23:00:08 -07:00
roblabla
dcd2232f69 Enforce unit struct for #[serde(other)] 2018-09-11 17:12:37 +00:00
roblabla
61bf901048 Fix for rust 1.15 2018-09-10 17:12:33 +00:00
roblabla
8cc7e6aa90 Implement #serde(other) on enum variant 2018-09-10 15:12:15 +00:00
David Tolnay
7b50388fef
Release 1.0.78 2018-09-08 17:10:41 -07:00
David Tolnay
108cca687c
Release 1.0.77 2018-09-06 21:36:27 -07:00
David Tolnay
b49bd52a53
Use parse_macro_input to report parse errors 2018-09-06 21:16:12 -07:00
David Tolnay
27bd640812
Update to syn 0.15 2018-09-06 21:16:08 -07:00
David Tolnay
98eddf9b29
Update to syn 0.15-rc1 2018-09-01 23:03:59 -07:00
David Tolnay
d23a40c1bb
Format with rustfmt 0.99.2 2018-09-01 23:03:41 -07:00
David Tolnay
55cecace29
Release 1.0.76 2018-09-01 15:25:53 -07:00
David Tolnay
2aab0ce2f6
Release 1.0.75 2018-08-24 23:03:04 -04:00
Eh2406
6c45593ee4 update a deb for minimal-versions 2018-08-24 22:50:17 -04:00
David Tolnay
cfdbbee845
Release 1.0.74 2018-08-23 18:29:16 -04:00
David Tolnay
db6aaf5110
Release 1.0.73 2018-08-22 21:47:15 -04:00
David Tolnay
dc4bb0bf08
Trim the r# from raw identifiers in user-facing strings 2018-08-22 20:50:29 -04:00
David Tolnay
60cbbacdb3
Release 1.0.72 2018-08-20 21:02:03 -04:00
David Tolnay
11c5fd78ad
Abbreviate and touch up some attribute parsing comments 2018-08-14 22:37:59 -07:00
David Tolnay
cbfdba3826
Use rustfmt to wrap and format comments 2018-08-14 22:32:27 -07:00
David Tolnay
a065db9838
Add AppVeyor badge to rest of crates 2018-08-07 00:15:12 -07:00
David Tolnay
24c4df7831
Release 1.0.71 2018-08-06 23:55:55 -07:00
David Tolnay
28db9d4989
Format with rustfmt 0.99.1 2018-08-06 22:40:28 -07:00
David Tolnay
4e54aaf796
Format with rustfmt 0.8.2 2018-07-08 19:02:44 -07:00
David Tolnay
4cddcbe194
Release 1.0.70 2018-07-06 20:21:26 -07:00
David Tolnay
3bcd568c86
Release 1.0.69 2018-06-30 23:40:28 -07:00
David Tolnay
a916aa9420
Release 1.0.68 2018-06-28 09:31:12 -07:00
Josh Chase
41dcb969e8 Shut clippy up 2018-06-28 11:12:27 -04:00
Josh Chase
6dbaea34ba Suppress 'extern crate' warning for rust 2018 2018-06-28 10:51:57 -04:00
David Tolnay
ce17301b8b
Release 1.0.67 2018-06-27 00:18:03 -07:00
David Tolnay
d827b101d9
Resolve default_trait_access lint 2018-06-26 23:58:02 -07:00
David Tolnay
c45ab6b304
Ignore indexing_slicing pedantic lint 2018-06-26 23:56:39 -07:00
David Tolnay
a887db398b
Release 1.0.66 2018-06-03 11:45:20 -07:00
David Tolnay
57de28744c
These match-expressions are implementing unwrap_or_else 2018-06-02 22:09:04 -07:00
David Tolnay
6d31ec521b
Remove leftover import from compile_error change 2018-06-02 22:01:45 -07:00
David Tolnay
7ad3d17e59
Merge pull request #1297 from adamcrume/master
Use compile_error! instead of panicking
2018-06-02 22:00:24 -07:00
Adam Crume
05e931b9a5 Update tests and use quote! macro 2018-06-02 21:11:42 -07:00
David Tolnay
2db2b53bbf
Release 1.0.65 2018-06-01 13:00:58 -07:00
Adam Crume
993710eb16 Use compile_error! instead of panicking
Fixes #1168
2018-05-31 19:57:23 -07:00
David Tolnay
dbaf2893e3
Release 1.0.64 2018-05-30 00:17:45 -07:00
David Tolnay
1b6fbf1023
Release 1.0.63 2018-05-28 20:12:08 -07:00
David Tolnay
c50c9d8862
Simplify readme as rendered on crates.io 2018-05-27 19:18:30 -07:00
David Tolnay
983bf8c090
Release 1.0.62 2018-05-26 18:59:03 -07:00
David Tolnay
7407d71417
Release 1.0.61 2018-05-26 10:38:18 -07:00
David Tolnay
1385aac208
Release 1.0.60 2018-05-25 16:05:01 -07:00
David Tolnay
06dcbbbaba
Format with rustfmt 0.7.0 2018-05-22 21:27:37 -07:00
David Tolnay
4de20bd48d
Release 1.0.59 2018-05-21 03:51:32 -07:00
David Tolnay
6bbc415fdf
Resolve conflicts between transparent and proc-macro2 upgrade 2018-05-20 21:57:23 -07:00
David Tolnay
ac1b25e91d
Improve error messages related to transparent 2018-05-20 21:55:48 -07:00
David Tolnay
0a4d536253
Implement transparent deserialize 2018-05-20 21:55:20 -07:00
David Tolnay
7dba1e303d
Implement transparent serialize 2018-05-20 21:55:19 -07:00
David Tolnay
0ea9d73fdf
Validate use of serde(transparent) 2018-05-20 21:55:18 -07:00
David Tolnay
a64aaeeb3b
Parse serde(transparent) container attribute 2018-05-20 21:55:16 -07:00
David Tolnay
3d5141a2f1
Update to proc-macro2 0.4 2018-05-20 20:55:14 -07:00
David Tolnay
656ea96c65
Remove reminders about flatten in a sequence 2018-05-20 12:42:40 -07:00
David Tolnay
5302482596
Simplify deserialize_seq_in_place 2018-05-20 12:40:35 -07:00
David Tolnay
7ada27014d
Track field index in internal AST 2018-05-20 12:40:28 -07:00
David Tolnay
4fa2a50f62
Format with rustfmt 0.7.0 2018-05-19 17:33:30 -07:00
David Tolnay
0c5f20c148
Release 1.0.58 2018-05-19 17:30:39 -07:00
David Tolnay
16d1265e17
Fix generated code for deserializing untagged newtype variant 2018-05-19 17:20:14 -07:00
David Tolnay
3b4803115b
Release 1.0.57 2018-05-18 23:31:33 -07:00
David Tolnay
f58000cb41
Release 1.0.56 2018-05-18 12:37:06 -07:00
David Tolnay
6550231a51
Release 1.0.55 2018-05-12 09:47:43 -07:00
David Tolnay
d6b62b9417
Release 1.0.54 2018-05-11 23:02:37 -07:00
David Tolnay
f3f26796c7
Format with rustfmt 0.6.1 2018-05-10 09:11:19 -07:00
David Tolnay
d1460e1f0d
Release 1.0.53 2018-05-10 08:44:53 -07:00
David Tolnay
368961e961
Support deserializing flattened untagged enum 2018-05-10 08:33:47 -07:00
David Tolnay
f9c6f0ab62
Release 1.0.52 2018-05-09 13:01:41 -07:00
David Tolnay
b2b36e1764
Accept implicitly borrowed data inside of Option 2018-05-08 12:19:09 -07:00
David Tolnay
4ad140ea70
Improve error for struct deserialized from array that is too short 2018-05-08 12:03:35 -07:00
David Tolnay
67777eb585
Account for skip_serializing_if in tuple struct length 2018-05-08 11:49:37 -07:00
David Tolnay
b4e51fcc77
Respect skip_serializing in tuple structs and variants 2018-05-08 11:37:52 -07:00
David Tolnay
be7fe2a5eb
Introduce bound attribute on enum variants 2018-05-08 11:16:10 -07:00
David Tolnay
b4076f4577
Release 1.0.51 2018-05-08 10:07:45 -07:00
David Tolnay
c4181f46be
Respect variant skip attribute in inferred bounds 2018-05-07 21:30:00 -07:00
David Tolnay
8c0efc3d77
Add a variant skip attribute 2018-05-07 21:27:34 -07:00
David Tolnay
7e3efaf6c5
Improve error when a 'de lifetime parameter already exists 2018-05-07 21:15:44 -07:00
David Tolnay
12fe42ed45
Support empty adjacently tagged enum 2018-05-07 21:02:42 -07:00
David Tolnay
7cd4f49c76
Release 1.0.50 2018-05-07 13:51:32 -07:00
David Tolnay
0025ef9aba
Detect deserialize on a struct ending in dynamically sized slice 2018-05-07 11:52:59 -07:00