Erick Tryzelaar
67e8ca354c
Remove core
feature
2015-04-12 11:36:09 -07:00
Erick Tryzelaar
5f6838130d
Update to Rust HEAD
2015-04-12 10:32:54 -07:00
Erick Tryzelaar
e0eff942b1
Add Error::unknown_field_error
2015-04-12 10:32:54 -07:00
Erick Tryzelaar
1da47c0870
Change de::VariantVisitor to let deserializers know the variant kind
...
This allows formats like cbor that encode a unit variant as just a
string to work.
[breaking-change]
2015-04-12 10:32:54 -07:00
Erick Tryzelaar
ed569bd3f6
Update to latest rust nightly
2015-04-01 22:51:02 -07:00
Erick Tryzelaar
1b1c605102
Pull deserialization impls into their own file
2015-03-26 07:58:26 -07:00
Erick Tryzelaar
4beb86ab7e
Update to rust HEAD
2015-03-25 10:43:25 -07:00
Erick Tryzelaar
17c295680e
Remove an unused variable
2015-03-20 08:47:48 -07:00
Erick Tryzelaar
d17846eff1
Add deserializer type hinting hooks
...
Formats like xml have trouble knowing if they should deserialize
tags into a sequence from the stream they are deserializing from.
This PR adds hooks so the deserializee can inform the deserializer
to provide them a sequence if possible.
Closes #38 .
2015-03-20 08:32:33 -07:00
Erick Tryzelaar
5378d22708
Switch to the new custom_deserialize syntax
2015-03-19 20:19:49 -07:00
Erick Tryzelaar
c8b2ad01b5
Update to rust HEAD
2015-03-19 20:19:49 -07:00
Erick Tryzelaar
e778c7e25c
Update to rust HEAD
2015-03-19 20:19:48 -07:00
Erick Tryzelaar
eb4af09456
Simplify the variant deserializer visitor
2015-03-18 07:35:05 -07:00
Erick Tryzelaar
78137ee3a4
Rewrite enum deserialization to not require allocations
2015-03-16 22:42:04 -07:00
Erick Tryzelaar
a212ef11a9
Fix compiling bench_struct
2015-03-16 21:10:16 -07:00
Erick Tryzelaar
ec8b7c9b89
Update to rust HEAD
2015-03-14 14:57:13 -07:00
Erick Tryzelaar
9e454a243a
Rename Serialize::visit to Serialize::serialize
2015-03-12 07:33:34 -07:00
Erick Tryzelaar
3f62b6d2bf
Merge ser::Serializer and ser::Visitor
2015-03-11 11:05:46 -07:00
Erick Tryzelaar
fbd6d1974a
Remove the unused Serializer::Value associated type
2015-03-11 10:15:27 -07:00
Erick Tryzelaar
805a3435cf
Replace serde1 with serde2!
...
Closes #26 !
2015-03-08 22:56:33 -07:00
Erick Tryzelaar
65cfcd03f8
Port serde2 to std::io, which cuts the speed by 26% :(
2015-02-16 18:17:50 -08:00
Erick Tryzelaar
1f98ee0d8f
Use writer.write_all(b"...") instead of write! for static strings
2015-02-14 10:19:15 -08:00
Erick Tryzelaar
004a89510e
ported over to the new std::io, but it's half the speed of std::old_io
2015-02-14 10:01:22 -08:00
Erick Tryzelaar
4dccf8cdec
Clean up warnings in serde
2015-02-13 10:26:13 -08:00
Thomas Bahn
f2a6f0e710
Follow rust std: fmt::Writer
is implemented by String
2015-02-06 22:23:16 +01:00
Thomas Bahn
1cf41295c7
Add feature gate io
2015-02-06 22:23:16 +01:00
Thomas Bahn
79ff9fdafa
Use the IntoIterator trait in for loops
2015-02-06 22:23:16 +01:00
Thomas Bahn
5782657502
Follow rust std: The old io
module is now called old_io
2015-02-06 22:23:16 +01:00
Thomas Bahn
9a284ae7c2
Follow rust std: fmt::Show
was renamed to fmt::Debug
2015-02-06 22:23:16 +01:00
Thomas Bahn
5dd077969c
Use slicing syntax instead of .as_slice()
2015-02-06 22:23:16 +01:00
Thomas Bahn
3022d7301a
Use deref coercions when possible
2015-02-06 22:23:15 +01:00
Thomas Bahn
361acd37d0
Follow rust std: int, uint were renamed to isize, usize
2015-02-06 22:23:15 +01:00
Dan Burkert
460dbce8cc
Update for rustc 1.0.0-nightly (8903c21d6 2015-01-15 22:42:58 +0000)
2015-01-17 16:36:15 -08:00
Erick Tryzelaar
8715a41158
Update to rust HEAD
2015-01-07 09:30:11 -08:00
Erick Tryzelaar
b98719a4a0
update to rust HEAD, switch to rustc_serialize
2015-01-04 17:18:50 -08: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
aad0854beb
Fix item macro invocation in benches
...
Following changes in rustc.
2014-12-19 15:43:54 +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
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
246396fdb4
update to rust HEAD, fix the tests
2014-12-13 16:55:42 -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