Commit Graph

68 Commits

Author SHA1 Message Date
Thomas Bahn
879baec029 Fix: String::from_utf8 changed function signature
Following a rust std change.
2014-12-23 18:35:26 +01:00
Thomas Bahn
a276ec4bba Fix: Utf16 handling moved from std into unicode crate
Following a rust change.
2014-12-23 18:35:00 +01:00
Thomas Bahn
17ffa65cb2 Replace StrAllocating with String type in function parameters
The key parameter of the insert functions are of type String now.
As insert requires ownership of its parameter `key` and StrAllocating
being gone in rust these functions now communicate that ownership
in their signature.

As a result &str must be converted into a String at the caller instead
of the callee.

The Trait ToOwned isn't an alternative as it's a generalized Clone.
StrAllocating simply has hidden an allocation or move.
2014-12-23 18:34:20 +01:00
Thomas Bahn
512a54e983 Replace TreeMap with BTreeMap in the serde2 2014-12-23 18:33:37 +01:00
Thomas Bahn
7fa62b6212 Fix: Append semicolon to item macro invocations in serde2
Following changes in rustc.
2014-12-23 18:31:22 +01:00
Thomas Bahn
3ea0c7e850 Append semicolon to item macro invocations in serde2
Following changes in rustc.
2014-12-19 09:17:51 +01:00
Erick Tryzelaar
29ff8492d2 sync bench_logs, add test for serializing to BufWriter 2014-12-18 08:44:34 -08:00
Erick Tryzelaar
29242ee6a6 update to rust head 2014-12-17 23:00:05 -08:00
Erick Tryzelaar
c75f5caf8f Update serde2 to rust HEAD 2014-12-13 16:58:31 -08:00
Erick Tryzelaar
ed6d64ad6d wip 2014-12-08 23:39:43 -08:00
Erick Tryzelaar
73a9dd86b9 wip: refactor 2014-12-08 23:13:17 -08:00
Erick Tryzelaar
fcd276176b wip: remove error fns from de 2014-12-08 22:45:58 -08:00
Erick Tryzelaar
b87f0f5fde Remove deprecated attributes 2014-12-08 20:41:40 -08:00
Erick Tryzelaar
6caf7b8e0b flesh out serde2::json 2014-12-06 08:02:34 -08:00
Erick Tryzelaar
f6434fcf77 add serde2 json deserializing to the benchmark 2014-12-05 22:19:30 -08:00
Erick Tryzelaar
8b9da64e29 Get serde2 compiling again 2014-12-05 16:24:32 -08:00
Erick Tryzelaar
ff8c8c77cc Update to latest rust master 2014-11-17 19:21:46 -08:00
Erick Tryzelaar
23f3173ded update to rust HEAD 2014-11-03 12:58:36 -08:00
Erick Tryzelaar
0b8324ae09 Fix serde2 macro generation 2014-10-23 10:26:52 -07:00
Erick Tryzelaar
b62bb24751 Inline the visitor 2014-10-23 10:26:43 -07:00
Erick Tryzelaar
6c98a3b739 Thread a visitor through the serializers 2014-10-13 20:43:20 -07:00
Erick Tryzelaar
1c3a42ea56 Serialization should have an error type 2014-10-11 11:05:24 -07:00
Erick Tryzelaar
7b669ac4c0 Minor cleanup 2014-10-11 10:52:14 -07:00
Erick Tryzelaar
bb360a4774 renaming to align with de 2014-10-10 18:20:08 -07:00
Erick Tryzelaar
671864eef4 Support parsing json with tests 2014-10-08 21:25:01 -07:00
Erick Tryzelaar
2c50039c13 rename de2.rs to de.rs 2014-10-06 21:55:33 -07:00
Erick Tryzelaar
150ec0d2d7 Remove commented out code 2014-10-06 21:52:19 -07:00
Erick Tryzelaar
447163834c Mild renaming 2014-10-06 21:37:25 -07:00
Erick Tryzelaar
90d3918904 add back hashmaps 2014-10-06 21:30:39 -07:00
Erick Tryzelaar
4755578c08 re-cleaning up 2014-10-06 21:02:58 -07:00
Erick Tryzelaar
3ec686cab1 wip 2014-10-06 08:12:36 -07:00
Erick Tryzelaar
79817f0603 Minor cleanup 2014-10-03 17:59:31 -07:00
Erick Tryzelaar
be825b8629 Add support for deserializing &strs 2014-10-03 17:59:21 -07:00
Erick Tryzelaar
eef1587b84 add strings back 2014-10-03 07:54:52 -07:00
Erick Tryzelaar
e605d70af1 Add support for deserialization streams that have an option type 2014-10-03 07:50:30 -07:00
Erick Tryzelaar
4c43b4fea2 Variation to support option and a json-ish value 2014-10-02 19:24:38 -07:00
Erick Tryzelaar
ed8dca4372 checkpoint 2014-10-02 07:52:37 -07:00
Erick Tryzelaar
08cc64f7d1 checkpoint 2014-09-30 08:17:54 -07:00
Erick Tryzelaar
b345cc30ad whitespace cleanup 2014-09-30 08:17:45 -07:00
Erick Tryzelaar
ae582b6064 Get serde2_macros compiling again 2014-09-30 08:17:10 -07:00
Erick Tryzelaar
083f62659a some renames 2014-09-30 08:06:16 -07:00
Erick Tryzelaar
b334136f6e Minor renaming 2014-09-30 08:06:16 -07:00
Erick Tryzelaar
755cfb339d change visit_seq/map into an iterator-ish pattern 2014-09-30 08:06:16 -07:00
Erick Tryzelaar
f283694583 cleanup dead code 2014-09-30 08:06:16 -07:00
Erick Tryzelaar
00cba6cdc4 Migrate everything over to a visitor approach 2014-09-30 08:06:16 -07:00
Erick Tryzelaar
a3ac2ab061 playing around with a de2 generic visitor 2014-09-30 08:06:16 -07:00
Erick Tryzelaar
c3a5becd22 Add visit_*_elt to de2 2014-09-30 08:06:16 -07:00
Erick Tryzelaar
401e621814 Fix a typo 2014-09-30 08:06:16 -07:00
Erick Tryzelaar
35786442f5 add two deserialization variations 2014-09-30 08:06:16 -07:00
kvark
c064b06272 Fixed serde2 2014-09-16 22:34:29 -04:00