Thomas Bahn
ae665a1c05
Syntax extension internals in rust changed
...
See e656081b70
2015-01-01 14:22:23 +01:00
Thomas Bahn
85d0c8e4e8
Rename FP* to FpCategory::* following std changes
2014-12-30 14:52:27 +01:00
Erick Tryzelaar
1366bf47e7
Merge pull request #15 from tomprogrammer/rust-head
...
Follow rustc changes: Various fixes due to std api stabilization
2014-12-23 13:02:10 -08:00
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
589a07d4c9
Silence deprecation warnings
...
str::char_len() is deprecated in favour of chars().count()
2014-12-23 18:05:58 +01:00
Thomas Bahn
91cfb003d9
Fix: String::from_utf8 changed function signature
...
Following a rust std change.
2014-12-23 18:05:58 +01:00
Thomas Bahn
3cf0fb8d5b
Fix: Utf16 handling moved from std into unicode crate
...
Following a rust change.
2014-12-23 18:05:58 +01:00
Thomas Bahn
0957d5769d
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:05:58 +01:00
Thomas Bahn
cca63836d2
Replace MoveItems and MoveEntries with IntoIter
...
Following a rust std change.
2014-12-23 18:05:58 +01:00
Thomas Bahn
681a609844
Replace TreeMap with BTreeMap in the serde tests
2014-12-23 17:44:26 +01:00
Thomas Bahn
19bda6a90d
Replace TreeMap/TreeSet with BTreeMap/BTreeSet in serde
...
Follow rust std changes:
https://github.com/rust-lang/rfcs/blob/master/text/0509-collections-reform-part-2.md
2014-12-20 14:42:48 +01:00
Thomas Bahn
aad0854beb
Fix item macro invocation in benches
...
Following changes in rustc.
2014-12-19 15:43:54 +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
Thomas Bahn
d6807c0e90
Append semicolon to item macro invocations in serde
...
Following changes in rustc.
2014-12-19 08:59:11 +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
bfc1b25fcd
add a test for using the std::io::extensions::Bytes iterator
2014-12-15 20:10:25 -08:00
Erick Tryzelaar
73f375673b
Simplify down some code
2014-12-14 11:34:27 -08:00
Erick Tryzelaar
cd9d584fe1
minor cleanup of the benchmarks
2014-12-14 11:31:24 -08:00
Erick Tryzelaar
befe433e33
add bench_reader* and bench_iter*
2014-12-13 23:39:19 -08:00
Erick Tryzelaar
90a4ef4867
add a bench_manual_deserialize benchmark
2014-12-13 22:58:05 -08:00
Erick Tryzelaar
c75f5caf8f
Update serde2 to rust HEAD
2014-12-13 16:58:31 -08:00
Erick Tryzelaar
246396fdb4
update to rust HEAD, fix the tests
2014-12-13 16:55:42 -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
e5ddf759de
cleanup serde::json::value
2014-12-05 22:33:30 -08:00
Erick Tryzelaar
0bd94c7653
serde List -> Array
2014-12-05 22:23:03 -08:00
Erick Tryzelaar
f6434fcf77
add serde2 json deserializing to the benchmark
2014-12-05 22:19:30 -08:00
Erick Tryzelaar
38dc9aaf72
clean up serde json deserializing
2014-12-05 22:19:05 -08:00
Erick Tryzelaar
388ef3e80f
fixup the benchmarks
2014-12-05 22:17:50 -08:00
Erick Tryzelaar
8b9da64e29
Get serde2 compiling again
2014-12-05 16:24:32 -08:00
Erick Tryzelaar
f240f5d2c1
whitespace cleanup
2014-12-05 12:03:23 -08:00
Erick Tryzelaar
663d3edf90
More benchmark cleanup
2014-12-01 13:32:00 -08:00
Erick Tryzelaar
f1606c8eb3
reuse the buffers
2014-12-01 13:20:37 -08:00
Erick Tryzelaar
742a70ed4f
Add tests for the bench_log benchmarks, make libserialize use same code as serde
2014-12-01 13:09:35 -08:00
Erick Tryzelaar
9d55333f06
update to the latest nightly
2014-12-01 12:21:18 -08:00
Erick Tryzelaar
857723dff6
Fix serde to compile on master again
2014-11-22 16:27:01 -08:00
Erick Tryzelaar
ff8c8c77cc
Update to latest rust master
2014-11-17 19:21:46 -08:00
Erick Tryzelaar
18d943e8a7
migrate json deserializer into it's own module, clean up errors
2014-11-14 20:55:49 -08:00
Erick Tryzelaar
4ce5ae8025
pull the json serializer into it's own module
2014-11-14 20:55:49 -08:00
Erick Tryzelaar
34ee45b794
Rename json::ParserError to json::Error, use the new error framework
2014-11-14 19:41:41 -08:00
Erick Tryzelaar
2b121b0db8
Rename the json::Value deserializer
2014-11-14 19:26:52 -08:00
Erick Tryzelaar
db17fe4f3c
Update the json examples to use the builder
2014-11-14 09:24:32 -08:00