Commit Graph

319 Commits

Author SHA1 Message Date
Kyle Huey 093bc24a13 Elide unnecessary copy when consuming a byte buffer. (#223) 2017-12-01 10:26:08 -08:00
Alexis Beingessner 1ecdeefe3d bump byteorder version to get transmuting binary float parses (#222) 2017-11-29 13:58:03 -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
Igor Gnatenko 98ba22c5fe do not exclude LICENSE.md (#220)
MIT license requires that it is shipped with sources. So crates.io archive should have it as well.
2017-11-13 14:23:33 -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 6881aca80a add more things to exclude list 2017-10-13 10:18:22 -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 470aa1c703 add readme category to cargo.toml 2017-10-13 08:54:32 -07:00
Ty Overby e3ea1fc451 remove readme.dev.md, no one was using it anyway 2017-10-13 08:32:50 -07:00
Ty Overby 938f03b900 exclude logo.png from packaging 2017-10-13 08:24:45 -07:00
Ty Overby d340fdc1a4 v0.9.0 2017-10-12 09:06:22 -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 a9d5dc455d Revert "remove publish = false"
This reverts commit d985212a36.
2017-10-10 16:29:50 -07:00
Ty Overby a094c215c4 Merge branch 'master' of github.com:TyOverby/bincode 2017-10-10 16:29:00 -07:00
Ty Overby ab70e7d507 remove completely unused dependency 2017-10-10 10:32:18 -07:00
Ty Overby 0214c6f4c2 bump version number 2017-10-10 10:25:19 -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
David Tolnay 78e40014f5 Merge pull request #204 from torkleyy/patch-2
Correct error message
2017-09-10 09:25:53 -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 e70bfc023b Merge pull request #186 from tshepang/foo
readme: avoid awkward language
2017-07-22 14:59:34 -07:00
Tshepang Lekhonkhobe 07b2514737 readme: deserializer/decoder actually accepts `&[u8]`, not `Vec<u8>` 2017-07-22 23:40:45 +02: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
David Tolnay 2657d36ec2 Merge pull request #196 from dgriffen/seal-bincode-read
Seal SizeLimit and BincodeRead
2017-07-22 13:27:40 -07:00
Lena Hellström 18bcfc420e Seal SizeLimit and BincodeRead 2017-07-22 14:37:08 -05:00
Lena Hellström 75a76f99c9 Merge branch 'master' into io-variant-names 2017-07-22 14:09:58 -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 e27043a036 use docs.rs for documentation 2017-07-14 13:30:39 -07:00
Nelson Chen 43712ac366 Add Debug derivation to structs of the example in README.md (#191)
The `assert_eq!` macro expects its arguments to satisfy the `Debug` trait as if and when it panics, it'll print out the `Debug` representation.
2017-07-07 15:52:22 -07:00
Tshepang Lekhonkhobe 04b5ff5938 example: a reminder that usize is assumed to be 8 bytes long (#188) 2017-05-31 07:23:50 -07:00
Tshepang Lekhonkhobe 46712f7b13 readme: follow idiom (#187) 2017-05-31 07:23:04 -07:00
David Tolnay 18b9225ab1 Merge pull request #183 from pyfisch/patch-2
uint -> usize in readme
2017-05-13 08:48:57 -07:00
Pyfisch e519476633 uint -> usize in readme 2017-05-13 17:37:46 +02:00
Ty Overby d985212a36 remove publish = false 2017-05-02 08:00:08 -07:00