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
bffe2dfeeb
Merge branch 'master' of github.com:TyOverby/bincode
...
Conflicts:
readme.md
2015-02-15 12:44:32 -08:00
Ty Overby
2291af38b6
floating logo
2015-02-15 12:44:11 -08:00
Ty
b5561d1706
Float image to the right
2015-02-15 12:39:26 -08:00
Ty Overby
1273f6ddf3
add logo
2015-02-15 12:36:44 -08:00
Ty Overby
03966150c6
emit str using write_all
2015-02-09 18:19:23 -08:00
Ty Overby
15e7672703
prepare for the new io library
2015-02-09 14:56:40 -08:00
Ty Overby
793588edae
update readme
2015-02-07 19:03:17 -08:00
Ty Overby
2f3860ddab
clean up tests
2015-02-07 18:25:28 -08:00
Ty Overby
58c3c65eea
fix size estimation, add tests
2015-02-07 18:10:12 -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
Ty Overby
85d4147c50
version = 0.0.7
2015-01-24 19:36:55 -08:00
Ty
32f772328e
Merge pull request #18 from csherratt/master
...
Update to latest nightly.
2015-01-24 16:45:25 -08:00
Colin Sherratt
6a9011d2e3
Update to using Debug over Show.
...
Update the Error impls.
2015-01-24 19:27:19 -05:00
Ty
a2bec8c7f7
Merge pull request #17 from nyx/patch-1
...
fixed a readme typo
2015-01-20 20:50:40 -08:00
Andrew Andkjar
2d7c25ad1e
fixed a readme typo
2015-01-20 17:21:30 -05: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
Francesco Mazzoli
eb933c9f89
`std::fmt::String` impls.
2015-01-15 02:24:36 +01:00
Ty Overby
54061d5eff
Add more documentation and a doc example
2015-01-13 13:37:53 -08:00
Ty Overby
1669ea6585
mark for new version
2015-01-09 15:15:38 -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
TyOverby
d8b5c35a2e
mark for 0.0.5
2015-01-08 16:38:22 -08:00
Ty Overby
70ca09a4da
Silence unused variable warning for EncoderWriter.
2015-01-08 11:20:53 -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
Ty Overby
dab27229b4
Merge branch 'master' of github.com:TyOverby/bincode
...
Conflicts:
src/reader.rs
2015-01-07 22:30:43 -08:00
Ty
cb0ef826f9
Merge pull request #14 from TyOverby/better-errors
...
More robust and precise error handling.
2015-01-07 22:05:12 -08:00
Ty Overby
bb0c8e4fe3
Merge branch 'master' of github.com:TyOverby/bincode
2015-01-07 22:04:59 -08:00
Ty Overby
f6cbf9a70d
add bounds checking to DecoderReader
2015-01-07 22:04:54 -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
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