Lena Hellström
ab3f627ca8
Don't panic. ( #96 )
2017-01-31 11:21:07 -08:00
Lena Hellström
c6393ac561
Update to serde 0.9.X ( #93 )
...
* Update to serde 0.9.X
* Remove redundant visitor and bad namespacing.
* Change DeserializeError to use Strings.
Reintroduce error tests.
* Better DeserializeError messages.
* Fix warnings.
2017-01-31 09:59:29 -08:00
David Tolnay
3d4346808f
More efficient serialize_bytes ( #90 )
...
* Update to serde_derive
* Fix missing Encoder and Decoder imports
* Add test for serializing bytes
* More efficient serialize_bytes
Reported in #serde: blank_name2 tried serializing
`HashMap<String, HashSet<Bytes>>` vs `HashMap<String, HashSet<&Path>>`,
the `&Path` version was done in ~.6 seconds while the
`&[u8]` one took a full 3 seconds more.
2016-12-12 18:26:26 +00:00
Nikita Baksalyar
8d708cd194
Delegate emit_enum_struct_variant calls to emit_enum_variant ( #89 )
...
* Delegate emit_enum_struct_variant calls to emit_enum_variant
read_enum_struct_variant delegates calls to read_enum_variant which
expects u32 prefix to encode a variant number. Previous implementation
of emit_enum_struct_variant doesn't emit it, making serialized data
invalid.
* Add test to check manual enum encoding
2016-11-27 13:08:20 -08:00
Brian Bowman
e96a3645fa
Fix typo in bincode::serde ( #88 )
2016-09-20 16:03:54 -07:00
David Tolnay
95b414a184
Update to serde 0.8.0 ( #84 )
2016-07-28 12:23:18 -07:00
Cobrand
c5073e83e5
pub used InvalidEncoding in serde+rustc_serialize so it shows in `cargo doc` ( #82 )
...
* Removed unused import warning
* pub use InvalidEncoding in serde+rustc_serialize
* Made both fields of InvalidEncoding public so it can be used without Display or Debug traits (e.g. pattern matching)
* Export of InvalidEncoding in rustc_serialize/serde make them visible in `cargo doc`
2016-07-08 06:53:43 -07:00
Oliver Schneider
2eee182f1f
fix char serialization and deserialization
2016-06-30 14:02:07 +02:00
Dmitry
e5a524ed28
Fixed size array deserialization ( #76 )
...
* Attempt to implement hint for fixed size arrays.
* Removed wrong visitor + tests.
* Removed extra new line.
2016-06-19 13:29:10 -07:00
David Tolnay
629d7bc640
Impl Deserialize for non-'static lifetimes ( #79 )
2016-06-19 13:23:21 -07:00
Ms2ger
c7bdb4a90c
Use num-traits. ( #72 )
2016-04-21 09:28:33 -07:00
Alexander Bulaev
ff69e6f3e1
Add cargo features for rustc-serialize and serde ( #70 )
...
* Add cargo features for rustc-serialize and serde
If you only really need one of them
* Check that both "serde" and "rustc-serialize" are compiling
* Minor: change Travis build order
2016-04-15 11:03:32 -07:00
Ty Overby
21329a0e53
v0.5.3
2016-04-12 09:28:21 -07:00
Jayson Reis
183c28e363
Upgrade byteorder to 0.5.x ( #68 )
2016-04-12 09:26:18 -07:00
Brian Bowman
127380a506
fix typo
2016-04-07 03:05:41 -05:00
Ty Overby
772b1da6df
Revert "Respect size limits in read_seq and read_map."
...
This reverts commit 1e21e5d13b .
2016-04-03 15:44:21 -07:00
Andrew Cann
ce61edb51f
Replace use of saturating_add
2016-03-10 17:27:51 +08:00
Andrew Cann
1e21e5d13b
Respect size limits in read_seq and read_map.
2016-03-10 17:08:11 +08:00
Ty Overby
bde9aa6565
add initial support for serde 0.7
2016-03-04 10:44:28 -08:00
Ty Overby
3e8833b70e
Fix typo
2016-02-07 17:42:45 -08:00
Ty Overby
9824d8061c
ignore instead of no_run
2016-02-07 17:03:47 -08:00
Ty Overby
7fba81da1e
should parse now
2016-02-07 17:00:24 -08:00
Ty Overby
13d9e30813
no run on tests
2016-02-07 16:56:51 -08:00
Ty Overby
05850df34a
Merge branch 'master' of github.com:TyOverby/bincode
2016-02-07 16:46:33 -08:00
Ty Overby
25cfb15823
add more docs
2016-02-07 16:46:23 -08:00
Ty Overby
7662a57727
add more useful syntax error messages
2016-01-19 08:46:33 -08:00
Ty Overby
a63e80d75d
add docs for the new modules
2015-08-07 23:16:35 -07:00
Ty Overby
0cfb64511c
moved the two designs into modules
2015-08-07 17:35:27 -07:00
Ty Overby
9c6bf1aa41
remove unused code
2015-08-07 16:39:15 -07:00
Ty Overby
3de218537f
Fix test fallout during merge
2015-08-07 16:16:42 -07:00
Erick Tryzelaar
b59af483ef
Updated to serde 0.5.0
2015-08-07 12:10:02 -07:00
Erick Tryzelaar
f04635c1ba
Add newtype handlers to speed up parsing newtype structs and variants
2015-07-30 20:45:36 -07:00
Erick Tryzelaar
8ec54e562a
Update to serde 0.5.0
2015-07-29 13:15:14 -07:00
Erick Tryzelaar
0d6b8a48b6
Get serde working
2015-07-29 13:15:04 -07:00
Erick Tryzelaar
b206032ff1
Initial support for serde serialization
2015-07-01 15:21:26 -07:00
Erick Tryzelaar
f11ba0c41f
Move tests into the tests/ directory
2015-06-30 07:52:18 -07:00
Ty Overby
fd52ae0d64
Revert "Merge pull request #42 from jmesmon/fix-oom"
...
This reverts commit 1c3f457cf9 , reversing
changes made to 84b5c416ca .
2015-05-29 13:50:16 -07:00
Ty Overby
e8d783fdfc
Revert "fail with size limit on large maps too"
...
This reverts commit ce286b2519 .
2015-05-29 13:39:17 -07:00
Ty Overby
ce286b2519
fail with size limit on large maps too
2015-05-28 16:12:46 -07:00
Ty Overby
1c3f457cf9
Merge pull request #42 from jmesmon/fix-oom
...
check the size of seqs before trying to decode them
2015-05-28 16:09:20 -07:00
Cody P Schafer
ee0dccbd02
check the size of seqs before trying to decode them
...
Fixes #41
2015-05-28 16:03:02 -04:00
Cody P Schafer
9ab3320db7
SliceBox: allow Deref into &[T]
...
Allows more convenient use of SliceBox where one doesn't care whether
it represents a Vec<T> or &[T] and can handle using a &[T].
2015-05-28 12:05:30 -04:00
Ty Overby
e3837055d7
Removes the "bytes read" return part from `decode`
...
This reverts commit 5fa0c2bd8a .
Conflicts:
Cargo.toml
2015-05-18 23:28:39 -07:00
Jonathan Reem
a19d62cbe9
Add some more trait impls and methods to StrBox and SliceBox
2015-05-04 03:48:25 -07:00
Ty Overby
b6615fa262
derive debug for refbox and friends
2015-05-02 12:56:36 -07:00
Ty Overby
1d45873f1e
cleaned up refbox implementation and added tests
2015-05-02 12:23:27 -07:00
Ty Overby
3d8f97923d
strbox and slicebox
2015-05-02 03:52:27 -07:00
Ty Overby
5fa0c2bd8a
Decoders return the number of bytes that they read
...
Closes #35
2015-05-01 09:17:18 -07:00
Ty Overby
d87e7dad2d
rustfmt
2015-04-29 23:26:58 -07:00
TyOverby
209b274062
remove dependency on the unicode library
2015-04-29 18:09:01 -07:00