David Tolnay
b43554fbb1
Require slice of tokens in serde_test::Deserializer
2017-04-05 00:22:00 -07:00
David Tolnay
5871fb9ce0
Remove lifetime from serde_test::Token
2017-04-05 00:17:50 -07:00
David Tolnay
211e2bb8d9
Support borrowed tokens in serde_test
2017-04-04 09:56:01 -07:00
David Tolnay
d3a2f5e268
Add a 'de lifetime to the deserialize traits
2017-03-29 00:10:34 -07:00
Clar Charr
09e467cc4c
Documentation for serde_test.
2017-02-28 18:20:27 -05:00
David Tolnay
5fbdadefb2
Deserializing enums in serde_test
2017-02-24 13:47:04 -08:00
David Tolnay
e8651a52e7
Rustfmt
2017-02-12 22:15:59 -08:00
David Tolnay
ff21d557c7
Untagged and internally tagged enums
2017-02-02 18:48:30 -08:00
Oliver Schneider
368784949e
move to cargo clippy instead of using the clippy plugin ( #733 )
...
* move to cargo clippy instead of using the clippy plugin
fixes #729
* non-exectable scripts must be run with `sh`
* don't build serde in the clippy travis job
* only run clippy tests if installing clippy succeeds
* why is travis so picky?
* no more serde_codegen
* serde_test_suite_deps has no features
* don't use empty loops, llvm optimizes them to undefined behaviour
* abort the clippy job when clippy lints are triggered
* use caches on travis to speed up builds
* why are we even using `travis-cargo`?
* need to reinstall clippy frequently due to nightly updates
* command line tools are hard
2017-01-31 09:09:37 -08:00
David Tolnay
87040b4bc4
Fix clippy lints in serde_test
2017-01-25 20:42:44 -08:00
David Tolnay
db449c4bf2
Set up clippy for serde_test
2017-01-25 20:38:21 -08:00
David Tolnay
e0c049dbf2
Remove usize and isize from data model
2017-01-25 09:08:06 -08:00
David Tolnay
92668d7061
Serialize T by ref
2017-01-23 17:11:18 -08:00
David Tolnay
a4126e4c5a
Errors
2017-01-21 09:13:01 -08:00
David Tolnay
5ecfb3b388
Update serde_test to use seeds
2017-01-19 01:24:33 -08:00
Oliver Schneider
b26f291d93
add missing Vec<u8>
deserialization hint to Deserializer
2017-01-16 16:55:13 +01:00
David Tolnay
4d1627fc96
Merge pull request #687 from serde-rs/ser
...
Enforce correct use of Serialize trait
2017-01-15 09:22:30 -08:00
David Tolnay
4b06030666
Unabbreviated method naming
2017-01-14 21:39:37 -08:00
David Tolnay
04f25eb122
Update serde_test for Serializer changes
2017-01-14 16:07:17 -08:00
David Tolnay
7372f152bd
Update serde_test for Deserializer changes
2017-01-14 13:42:45 -08:00
David Tolnay
88debb3fb8
Remove SeqVisitor::end() and MapVisitor::end()
2017-01-13 13:34:38 -08:00
Oliver Schneider
5b668ed87a
attempt to test the field names, but deem it too complex and opt to at least improve the code
2017-01-12 20:17:55 +01:00
David Tolnay
eb6fb1d40e
Merge pull request #523 from serde-rs/enum
...
Enum deserialization API
2017-01-08 00:45:50 -08:00
David Tolnay
7a0e8f73b4
Remove the Deserialize trait bound on Visitor::Value
2017-01-03 01:50:10 -08:00
David Tolnay
85f1bf0259
Enum deserialization API
2016-08-23 22:17:28 -04:00
Steven Fackler
ea833d3427
Split serialize_map_elt
...
Like what's been done on the deserialization side with MapVisitor, this
allows some weirder uses of Serde to handle the key and value in
separate steps.
2016-07-27 12:12:07 -07:00
Oliver Schneider
124bacd871
fix for 1.8, 1.9 and stable
2016-07-21 10:11:04 +02:00
Oliver Schneider
4280dd466d
rename deserialize_fixed_size_array to deserialize_seq_fixed_size
2016-07-20 19:20:31 +02:00
Oliver Schneider
36a7bf6244
make Deserializer
pure
2016-07-20 10:26:31 +02:00
Oliver Schneider
42c41922ce
adjust tests for new interface
2016-07-15 12:59:30 +02:00
Oliver Schneider
16ba32dbe1
stateful map/seq serialization
2016-07-14 15:36:47 +02:00
Oliver Schneider
6adcaa55e5
json needs more info
2016-07-12 16:53:20 +02:00
Oliver Schneider
fb575225bc
simplify!
2016-07-12 16:16:48 +02:00
Oliver Schneider
3766633f4a
adjust codegen to work with the revamped map/seq serializer
2016-07-12 15:44:19 +02:00
David Tolnay
f531be1524
Turn comments into doc comments
2016-06-29 00:58:33 -07:00
David Tolnay
041d5c0842
Make serde_test asserts more consistent
2016-06-28 23:50:19 -07:00
David Tolnay
8e87926bc2
Round out the Error variants
2016-06-28 22:57:53 -07:00
David Tolnay
cfc2f9adc0
Remove Error from name of Error variants
2016-06-28 22:49:13 -07:00
David Tolnay
00f94290a6
Add message to CustomError
2016-06-28 22:36:29 -07:00
David Tolnay
093201abfb
Assert tokens are empty after reaching error
2016-06-28 22:23:38 -07:00
David Tolnay
6d64104375
Factor the Token De/Serializer into serde_test
2016-06-28 21:54:51 -07:00