David Tolnay
107a1930b5
Update documentation to 2018 edition
2019-04-30 01:18:32 -07:00
David Tolnay
c954d3352c
Remove unneeded ```rust from rustdoc
2019-04-30 01:15:01 -07:00
David Tolnay
0a67cf66e7
Release 1.1.3
2019-04-07 17:28:48 -07:00
David Tolnay
f5af5b992b
Define html_root_url
2019-02-16 11:28:17 -08:00
Diggory Hardy
a04c750960
Make i128 support automatic for supporting Rustc versions
...
Uses autocfg
2019-01-28 09:59:18 -05:00
Jeff Muizelaar
20da2c841a
Make config() inline(always)
...
Without this we end up generating code for all configs unless LTO is on.
2018-11-20 11:13:44 -05:00
Ty Overby
d8704644d7
format
2018-09-04 16:25:10 -07:00
boxdot
5633935964
Introduce `Config::deserialize_seed` for exposing serde's statefull deser.
2018-09-04 16:22:50 -07:00
Ashley Mannix
2ef9a06894
add support for 128bit numbers
2018-05-30 09:44:38 -07:00
Ty Overby
72f002cc0a
some comment fixes
2018-02-13 16:24:57 -08:00
Ty Overby
5081ac7c08
remove unused function type parameter
2018-02-07 20:23:07 -08:00
Ty Overby
24b007e194
public but hidden read types
2018-02-07 20:13:26 -08:00
Ty Overby
3c5b38097f
hide with_deserializer and with_serializer
2018-02-07 19:46:25 -08:00
Ty Overby
76b7662dcd
move to custom read implementation for deserialize_in_place
2018-02-07 19:39:27 -08:00
Ty Overby
68ca894b81
add deserialize_in_place
2018-02-07 18:32:10 -08:00
Ty Overby
b31151a605
2nd implementation of the Config Trait ( #214 )
...
* add option and config traits
* thread options everywhere
* add WithOtherLimit, WithOtherEndian, and update internal to take advantage of it
* wip
* add rest of the public API and fix tests
* dtolnay feedback
* remove serialized_size_bounded and replace it with a use of config
* remove inline from trait method
* finish documentation and add custom reader support
* minor config_map refactor
* doc changes
* add with_(de)serializer functions and their associated modules
2018-02-07 18:26:46 -08:00
Kyle Huey
093bc24a13
Elide unnecessary copy when consuming a byte buffer. ( #223 )
2017-12-01 10:26:08 -08:00
Markus Westerlind
7464ba7272
Allow serialized types to use a more compact representation ... ( #217 )
...
... by utilizing that bincode is not human readable.
Uses the changes in https://github.com/serde-rs/serde/pull/1044 which
allows data formats to report that they are not human readable. This
lets certain types serialize themselves into a more compact form as they
know that the serialized form does not need to be readable.
Closes #215
BREAKING CHANGE
This changes how types serialize themselves if they detect the
`is_human_readable` state.
2017-11-20 09:55:34 -08:00
Ty Overby
1cc66df1d5
add documentation to utf8_char_width
2017-10-13 17:58:53 -07:00
Ty Overby
1cf9a0eb56
fix doc comment for deserializing function
2017-10-13 17:48:55 -07:00
Ty Overby
47b66f55ce
switched type parameter on deserializer
2017-10-13 17:44:36 -07:00
Ty Overby
251bbe22d4
remove _types from read module
2017-10-13 17:42:09 -07:00
Ty Overby
40889ec016
capitalize Bincode
2017-10-13 17:38:36 -07:00
Ty Overby
de942273a0
remove infinite terminology from SequenceMustHaveLength message
2017-10-13 17:32:04 -07:00
Ty Overby
94b3de8f3c
remove decding terminology from sizelimit error message
2017-10-13 17:29:44 -07:00
Ty Overby
c696aac206
fix mistake
2017-10-13 10:17:58 -07:00
Ty Overby
7dc7a94560
improve size limit error display
2017-10-13 08:59:08 -07:00
Ty Overby
3a24da087b
cargo fmt source
2017-10-13 08:57:04 -07:00
Ty Overby
c8f02e30aa
177 invalid encodings ( #212 )
...
* split out invalid encoding errors
* detail breaking changes
2017-10-12 09:04:14 -07:00
Ty Overby
45e70e297e
add ErrorKind::DeserializeAnyNotSupported ( #211 )
2017-10-11 10:38:35 -07:00
Ty Overby
d04ba007dc
remove references to old type ( #210 )
2017-10-11 09:53:45 -07:00
Ty Overby
a135fd44dc
uncapitalize error messages ( #209 )
2017-10-11 09:53:36 -07:00
Ty Overby
62941544ea
rename doc functions ( #208 )
...
* fix up docs
2017-10-10 16:41:27 -07:00
Ty Overby
ab70e7d507
remove completely unused dependency
2017-10-10 10:32:18 -07:00
Jeff Muizelaar
d033583700
Forward read_exact() as well as read(). ( #207 )
...
If we don't do this we end up using the generic read_exact method
which is not necessarily optimal. This is especially when
using a specialized Read implementation to go fast.
See https://github.com/TyOverby/bincode/issues/206
2017-10-10 10:20:34 -07:00
Thomas Schaller
f20770a09f
Correct error message
...
Spotted the mistake while skimming over the code.
2017-09-10 17:25:32 +02:00
Lena Hellström
4777efdfaa
take reader and writer by value ( #200 )
2017-07-23 21:58:29 -07:00
Lena Hellström
34aba9acbe
Internal type names ( #199 )
...
* Remove internal type names from api
* Rename IoReadReader to IoReader
2017-07-23 21:57:53 -07:00
David Tolnay
2f1ab0a0e5
Revert whitespace changes from #194
2017-07-22 13:35:13 -07:00
David Tolnay
d44adb148e
Correctly report the cause of IO error
...
This was fixed in #195 but unintentionally reverted in #194 .
2017-07-22 13:34:29 -07:00
David Tolnay
815c44287a
Merge pull request #194 from dgriffen/io-variant-names
2017-07-22 13:32:46 -07:00
Lena Hellström
18bcfc420e
Seal SizeLimit and BincodeRead
2017-07-22 14:37:08 -05:00
Lena Hellström
b6dbb08f92
Correctlly report the cause of IoError ( #195 )
2017-07-20 10:12:36 -07:00
Lena Hellström
d55bbf150f
Remove naming redundancy with IoError
2017-07-18 21:54:23 -07:00
Ty Overby
8be2e87415
factor out some common functionality
2017-04-20 22:20:56 -07:00
Ty Overby
cb7e9f87eb
fix buffer length bug
2017-04-20 22:11:28 -07:00
Ty Overby
6692674f43
WIP Implement nocopy support for bincode ( #150 )
...
* basic infrastructure
* use BincodeRead internally
* fix zero copy behavior
* rearrange module layout; remove pub(crate)
* add size-limit safety checks when deserializing str or bytes
* fix-up tests
2017-04-20 18:27:22 -07:00
David Tolnay
7eccffd783
Update to serde 1.0 branch ( #149 )
...
* Update to serde 1.0 branch
* The serde 1.0 branch merged
2017-04-19 16:05:59 -07:00
Ty Overby
b3acb6ea60
remove read_bytes ( #143 )
2017-03-22 13:08:37 -07:00
Ty Overby
c6fa2358e5
add docs to everything that was undocumented
2017-03-20 17:32:55 -07:00