Commit Graph

143 Commits

Author SHA1 Message Date
Ty Overby cb3c84acd6 Merge branch 'master' of github.com:TyOverby/bincode 2015-04-12 21:04:29 -07:00
Ty Overby 92d6b95c2c remove reimplementation of read_exactly 2015-04-12 21:04:15 -07:00
TyOverby be66f5fed4 change wording of some docs 2015-04-07 13:35:11 -07:00
Ty Overby e5d0c33acd update for rustc 2015-04-02 12:24:05 -07:00
Mike Dilger a92429505a Update full slice syntax 2015-04-01 08:54:58 +13:00
Ty Overby 1bbd5377e3 rustup 2015-03-25 15:50:41 -07:00
Ty Overby 575002877b removed warnings 2015-03-23 10:36:29 -07:00
Cody P Schafer b9f201c792 Don't require BufRead, only Read
While BufRead is preferable to avoid dog-slow performance, requiring
when no methods are called is also problematic, especially for wrappers
around Read that shouldn't necessarily need to know they're wrapping
BufRead.
2015-03-02 17:23:10 -05:00
Ty Overby 5f85e9b19a Use new io, update for rustc changes 2015-02-21 21:42:59 -08:00
Ty Overby 28b5007731 mark new version 2015-02-21 21:05:30 -08:00
Ty Overby 6c6d92ef45 feature new_io 2015-02-20 08:48:48 -08:00
Ty Overby f5111f9476 Add RefBox.
RefBox is a structure for encoding references, and decoding them into
a box.  This makes it easy to nest structures that otherwise would not
be able to be nested and encoded.
2015-02-17 13:18:25 -08:00
Ty Overby 873815ab0a prepare for newio 2015-02-16 11:33:21 -08:00
Ty Overby b15b85797e added doc icon 2015-02-15 12:56:42 -08:00
Ty Overby 15e7672703 prepare for the new io library 2015-02-09 14:56:40 -08:00
Ty Overby 64a8877c55 add another test and change Show -> Debug 2015-02-05 01:18:44 -08:00
TyOverby 5952c3adb0 update for stdlib 2015-01-28 13:01:11 -08:00
TyOverby 0e044483ee Fix doc tests. 2015-01-16 13:25:55 -08:00
TyOverby aeaa4aafd4 Merge branch 'master' of github.com:TyOverby/bincode 2015-01-16 13:21:46 -08:00
TyOverby 89a6b007b1 add encoded_size function 2015-01-16 13:21:35 -08:00
Ty Overby 54061d5eff Add more documentation and a doc example 2015-01-13 13:37:53 -08:00
TyOverby 97e675ac06 Merge branch 'master' of github.com:TyOverby/bincode
Conflicts:
	src/writer.rs
2015-01-09 12:58:04 -08:00
TyOverby 6fe6e8d251 update for 1.0.0-alpha 2015-01-09 12:51:58 -08:00
Ty Overby c7ed0e106c `decode` takes a slice rather than a vec.
Also added comments for the main functions.
2015-01-08 23:32:21 -08:00
Ty Overby 08e726cb10 Added size checking on serialization.
Specifying a bound on serialization is optional, so when specified, it
will run a pass over the object and make sure that the serialized object
will fit into the required amount of bytes.
2015-01-08 22:32:59 -08:00
Ty Overby 23d8310f0b Fix size estimation of chars.
`char` in rust is 32-bits long, but is encoded using utf-8.  Previously,
bincode would assume the worst and say that chars are 4-bytes long
always, when in reality, they are often only 1 byte long.

This commit fixes that bug, adds a test for it, and does some general
cleanup in the library.
2015-01-08 11:05:12 -08:00
Francesco Mazzoli 7cd16ea194 More robust and precise error handling.
When decoding, decoding errors are now isolated from `IoError`s.
2015-01-08 04:02:19 +01:00
Ty Overby b4023f5281 Fix utf-8 handling when reading malformed messages. 2015-01-07 10:18:39 -08:00
Francesco Mazzoli cea4129b05 Remove stale comments. 2015-01-07 03:15:37 +01:00
Francesco Mazzoli 14f6b84c88 Update to the latest rustc-serialize 2015-01-07 02:23:05 +01:00
TyOverby bfbaeaacd1 added size-limits to all functions. Currently the size limits aren't actually enforced. 2015-01-05 11:19:08 -08:00
Ty Overby b873c9e75f added old_orphan_check feature to tests and examples 2015-01-03 15:06:43 -08:00
crhino 8f982f334e serialize crate has moved out of tree to rustc-serialize.
See commit b04bc5cc49
2014-12-24 12:25:57 -05:00
crhino 1219fe8cf0 Fix rustc warnings. 2014-12-15 23:15:19 -08:00
Ty Overby 4c6006dfb0 update tests to pass with new compiler 2014-11-20 12:08:47 -08:00
Ty Overby ed96883a53 changed project name to 'bincode' 2014-10-27 09:45:24 -07:00
Theodore DeRego 3ef45f5a1f Encode/decode to/from references to readers 2014-10-09 13:29:23 -10:00
Ty Overby 1b316175cb add todo for when higher order lifetimes land 2014-09-17 02:35:56 -07:00
Ty Overby 9bd822ecf8 renamed project to binary_encode 2014-09-17 02:12:26 -07:00
Ty Overby e13a2a42b1 implemented helper functions 2014-09-17 01:36:53 -07:00
Ty Overby fe0a296337 Implemented the reader, added tests 2014-09-15 18:19:04 -07:00
Ty Overby 325eebd201 better formatting 2014-09-15 14:09:38 -07:00
Ty Overby 865a008dd7 compiles without any features 2014-09-15 13:59:11 -07:00