Commit Graph

127 Commits

Author SHA1 Message Date
Lena Hellström e1aed75f14 Update logo (#407) 2021-10-07 14:25:53 +02:00
Ben Kimock 5c541a297a Optimize varint parsing (#337)
* Add benchmarks for varint parsing

* Enable more inlining

* Outline error construction

* Add provided functions to BincodeRead to customize reading of literals

* Add #[inline] to deserialize_byte

* Outline SliceReader::unexpected_eof so that deserialize_varint inlines

* Implement BincodeRead for std::io::BufReader

* Reimplement all of BincodeRead in terms of BufRead-like functions

* Move branch into error-creation function to get below inline threshold
2021-06-19 18:16:13 -07:00
Alex Touchet cd58cf2e7e Update URLs and some cleanups (#383)
* Update URLs and some cleanups

* Capitalize Rust

* Remove accidental directory

* Update URLs and some cleanups

* Update URL

* Capitalize Rust
2021-04-09 14:46:05 +02:00
Lena Hellström e39a047b4b prep branch for 2.0 work (#379)
* prep branch for 2.0 work

* switch to 2018 edition

* fix clippy issues

* fix tests

* fix warnings

* fix formatting
2021-04-08 14:54:31 +02:00
Lena Hellström e15b8e911a clarify msrv support (#375)
* clarify msrv support

* pin byteorder to valid versions
2021-02-23 11:47:56 -08:00
Lena Hellström 00c43bf3b1 fix logic error in fill_buffer (#336) 2020-06-23 23:41:55 -07:00
Lena Hellström a822c09d93 bump version to 1.3.0 (#330) 2020-06-04 21:20:43 -07:00
Lena Hellström 38322212e6 update author name to current legal name 2020-03-09 18:39:39 -04:00
Kent Fredric d5579582e0 Restore shipping tests re bug #290
Includes changes to travis to re-run the test suite inside a copy
of the prepared package.

Closes: https://github.com/servo/bincode/issues/290
2020-02-21 14:08:44 -05:00
David Tolnay 6c4b23ce62 Release 1.2.1 2019-12-09 22:25:24 -08:00
Justin Starry 0215da2d29 Fix emscripten build failures due to lack of i128 support 2019-10-19 19:51:34 -04:00
Josh Matthews 293e9cea32 Release 1.2.0. 2019-09-24 14:16:47 -04:00
Josh Matthews d4d13aa37c Release 1.1.5. 2019-09-23 18:56:44 -04:00
atouchet 43b6c2c516 Update URLs 2019-05-24 22:36:59 -04:00
David Tolnay 18da2c95d5 Release 1.1.4 2019-05-14 21:16:49 -07:00
quininer 32d080586f Fix autocfg version 2019-05-15 12:05:44 +08:00
David Tolnay 0a67cf66e7 Release 1.1.3 2019-04-07 17:28:48 -07:00
David Tolnay e4eca8871f Merge pull request #264 from kornelski/patch-1
Add encoding crates.io category
2019-04-07 17:27:47 -07:00
David Tolnay 74422cfaae Update serde_bytes dependency to 0.11 2019-04-07 16:31:53 -07:00
Kornel 84a7fa4912 Add encoding crates.io category
The crate is useful more generally than just for network programming
2019-03-29 21:13:58 +00:00
David Tolnay 31f68efe85 Remove outdated changelist 2019-02-16 11:42:51 -08:00
David Tolnay 4c90de0e3f Release 1.1.2 2019-02-16 11:34:13 -08:00
David Tolnay 65f87aefd4 Bump byteorder requirement to 1.3.0
1.3.0 is the first version that performs auto detection of i128 support,
which we rely on.
2019-02-16 11:33:31 -08:00
David Tolnay e8533f1bdf Simplify semver dependency syntax 2019-02-16 11:33:13 -08:00
David Tolnay f5af5b992b Define html_root_url 2019-02-16 11:28:17 -08:00
David Tolnay 254cf0ce61 Release 1.1.1 2019-02-16 11:22:49 -08:00
Diggory Hardy a04c750960 Make i128 support automatic for supporting Rustc versions
Uses autocfg
2019-01-28 09:59:18 -05:00
David Tolnay 006e17e75b Display a Travis badge on crates.io 2018-08-07 11:50:00 -07:00
Ty Overby 364e8638a0 publish 1.0.1 2018-06-18 09:50:54 -07:00
Ashley Mannix 2ef9a06894 add support for 128bit numbers 2018-05-30 09:44:38 -07:00
Ty Overby 53b2b29829 1.0.0 2018-02-15 10:47:00 -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
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 251bbe22d4 remove _types from read module 2017-10-13 17:42:09 -07:00
Ty Overby 6881aca80a add more things to exclude list 2017-10-13 10:18:22 -07:00
Ty Overby 470aa1c703 add readme category to cargo.toml 2017-10-13 08:54:32 -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 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
Ty Overby d985212a36 remove publish = false 2017-05-02 08:00:08 -07:00
Ty Overby 851421be5d bump version 2017-05-02 07:59:05 -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