Francesco Mazzoli
bc3b49e0fd
Use latest rustc-serialize
...
Needed to compile with latest nightly.
2015-01-07 19:30:14 +01:00
Ty Overby
b4023f5281
Fix utf-8 handling when reading malformed messages.
2015-01-07 10:18:39 -08:00
Ty
ee09eb19da
Merge pull request #13 from bitonic/fast-str-read
...
Read strings in one go, not byte-by-byte.
2015-01-06 21:08:33 -08:00
Ty
2c1c2b2ee5
Merge pull request #12 from bitonic/master
...
Update to the latest rustc-serialize
2015-01-06 21:07:10 -08:00
Francesco Mazzoli
0be3c68164
Document some encoding details
...
Also, update Cargo.toml with my name.
2015-01-07 03:49:19 +01:00
Francesco Mazzoli
12bdc92ff1
Read strings in one go, not byte-by-byte.
...
Also add a test with a unicode char.
2015-01-07 03:31:20 +01:00
Francesco Mazzoli
1d96d861e1
Remove redundant imports
2015-01-07 03:30:54 +01: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
602d06d412
Merge pull request #10 from bitonic/master
...
Use u32 to represent variant tags.
2015-01-05 10:58:33 -08:00
Ty Overby
b873c9e75f
added old_orphan_check feature to tests and examples
2015-01-03 15:06:43 -08:00
Ty Overby
6e0069163c
upgrade to new version of rustc-serialize
2015-01-03 14:54:31 -08:00
Ty Overby
0b5b3653e4
update readme to reflect library changes
2015-01-03 11:31:48 -08:00
Francesco Mazzoli
f6b6eefdac
Use u32 to represent variant tags.
...
This makes it possible to exchange binary serialized structures between
different architectures, and reduces bandwidth. I doubt it's even
possible to have more than 4 billions variants anyway :).
2015-01-03 16:33:08 +01:00
Ty
2447e093a9
Merge pull request #9 from bitonic/master
...
Perform sanity check when reading enum variant.
2015-01-02 20:11:40 -08:00
Francesco Mazzoli
38058fb6d3
Perform sanity check when reading enum variant.
2015-01-03 04:54:31 +01:00
Ty
ac6930c37d
Merge pull request #8 from crhino/rustc-62fb41c32
...
Update to newer rustc version
2014-12-24 19:34:52 -06:00
crhino
74d9d9b1af
Update version to 0.0.3
2014-12-24 12:31:47 -05: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
7e7bd12479
Change closures to FnMut to correspond to change in serialize crate.
2014-12-24 12:22:15 -05:00
crhino
1219fe8cf0
Fix rustc warnings.
2014-12-15 23:15:19 -08:00
crhino
86d7094177
Update to latest rust nightly.
...
- rustc 0.13.0-nightly (126db549b 2014-12-15 00:07:35 +0000)
2014-12-15 20:28:42 -08:00
Ty Overby
f3f849bbcc
mark for 0.0.2
2014-11-24 10:00:48 -08:00
Ty Overby
4c6006dfb0
update tests to pass with new compiler
2014-11-20 12:08:47 -08:00
TyOverby
35941be66d
Added more info to the cargo file
2014-11-13 10:39:22 -08:00
TyOverby
133a2bcd43
cleaned up imports
2014-11-13 10:31:29 -08:00
TyOverby
2131a69ec8
Fix `int` serilization / deserialization size.
...
Before this change, encoding an int would be platform
dependent because it would use write_be_int rather than
picking a size up front. This change chooses a size
(64 bit integer) and encodes and decodes with that size.
Closes #5
2014-11-13 10:28:04 -08:00
Ty
3c8f9792ab
Merge pull request #4 from tedsta/master
...
Updated to latest rust nightly
2014-11-09 20:18:09 -08:00
Theodore DeRego
2763b509ce
Updated to latest rust nightly
2014-11-09 11:42:14 -10:00
Ty Overby
00929f29dc
added a size assertion to the basic example
2014-10-27 13:27:44 -07:00
Ty Overby
ed96883a53
changed project name to 'bincode'
2014-10-27 09:45:24 -07:00
Ty
a8edf6cdfd
Update readme.md
2014-10-11 12:47:18 -07:00
Ty Overby
65a653590a
added travis build badge
2014-10-09 22:15:01 -07:00
Ty
a488b2d956
Merge pull request #2 from tedsta/master
...
Encode/decode to/from references to readers
2014-10-09 22:09:42 -07:00
Theodore DeRego
3ef45f5a1f
Encode/decode to/from references to readers
2014-10-09 13:29:23 -10:00
Ty Overby
cc327bcec3
fix handling of unicode during decode
2014-10-01 23:41:31 -07:00
Ty
dd996040e8
Update LICENSE.md
2014-09-18 13:30:55 -07:00
Ty
31543fd8f2
Create LICENSE.md
2014-09-18 13:30:30 -07:00
Ty Overby
7d4cde7212
standardize to u64
2014-09-17 12:22:53 -07:00
Ty Overby
6053ac0711
added link to api docs
2014-09-17 03:01:26 -07:00
Ty Overby
6b7239d90f
add example subsection
2014-09-17 02:51:51 -07:00
Ty Overby
b1a067e151
test vec of enums
2014-09-17 02:45:24 -07:00
Ty Overby
f7952f8cdb
update readme with example and better description
2014-09-17 02:44:15 -07:00
Ty Overby
1b316175cb
add todo for when higher order lifetimes land
2014-09-17 02:35:56 -07:00
Ty Overby
b674029743
added basic test
2014-09-17 02:20:33 -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
635f81a9a3
unfinished readme
2014-09-15 18:30:09 -07:00
Ty Overby
fe0a296337
Implemented the reader, added tests
2014-09-15 18:19:04 -07:00