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
Ty Overby
851421be5d
bump version
2017-05-02 07:59:05 -07:00
David Tolnay
5ab3b0dec8
Merge pull request #152 from TyOverby/fix-buffer-bug
...
Fix buffer bug
2017-04-21 08:33:21 -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
Ty Overby
4654645c82
Update Cargo.toml
2017-04-19 16:06:12 -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
0cf1185e9d
0.7.0
2017-04-08 11:07:04 -07:00
Ty Overby
34679457d2
alpha7
2017-04-08 10:52:52 -07:00
zhangsoledad
f23e430a88
update readme ( #146 )
2017-03-31 09:43:33 -07:00
Artyom Kazak
dbfa111e2f
Fix a typo in the readme ( #145 )
2017-03-25 09:11:49 -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
Ty Overby
18cfe42d26
add more tests
2017-03-20 17:14:45 -07:00
Ty Overby
975f82cfb8
add size_hints
2017-03-20 08:29:26 -07:00
Ty Overby
9bc83fdf1e
Update changelist.org
2017-03-19 20:13:00 -07:00
Ty Overby
539637d78b
remove refbox ( #140 )
2017-03-19 20:10:35 -07:00
Ty Overby
2b465047b9
Eager prealloc no inline ( #127 )
...
* make SizeLimit a trait
* always preallocate
2017-03-17 18:14:59 -07:00
Ty Overby
461a694bac
bump to alpha-6
2017-03-17 18:02:34 -07:00
Ty Overby
f4c97fde6a
make SizeLimit a trait ( #124 )
...
* make SizeLimit a trait
* move inline to the correct location
2017-03-17 17:59:12 -07:00
Ty Overby
ed65f9abeb
call read_bytes iteratively inside of read_vec ( #138 )
2017-03-13 09:24:38 -07:00
slyrz
05d1936caf
Make read_vec more robust ( #134 )
...
* Make read_vec more robust
* Remove check for overflowing add
* Let the two read_vec functions become one again
2017-03-09 11:04:51 -08:00
slyrz
6c3b677dd7
Revamp deserialize_char ( #133 )
...
* Remove unneccesary unwrap
* Use a single buffer for reading a char
* Replace while loop with read_exact
* Remove first_byte variable
* Use read_exact to avoid waiting for data after EOF
* Create error in a closure
2017-03-09 11:02:27 -08:00
slyrz
33b07e2bce
Make example work with serde ( #131 )
...
* Make example work with serde
* Restore asserts
2017-03-07 10:14:46 -08:00
Kevin M Granger
01f13dc1b8
Fix small typo in readme: icp-channel -> ipc-channel ( #129 )
2017-03-06 14:38:06 -08:00