Commit Graph

58 Commits

Author SHA1 Message Date
Erick Tryzelaar
34ee45b794 Rename json::ParserError to json::Error, use the new error framework 2014-11-14 19:41:41 -08:00
Erick Tryzelaar
2b121b0db8 Rename the json::Value deserializer 2014-11-14 19:26:52 -08:00
Erick Tryzelaar
db17fe4f3c Update the json examples to use the builder 2014-11-14 09:24:32 -08:00
Erick Tryzelaar
7dee5a64d5 Allow the json::builder::ObjectBuilder to insert &str keys 2014-11-14 09:06:25 -08:00
Erick Tryzelaar
3c26cb9fe5 Factor the json value enum into it's own module 2014-11-14 08:22:59 -08:00
Erick Tryzelaar
21a58e86e4 Rename Serializable to Serialize, Deserializable to Deserialize 2014-11-13 07:54:44 -08:00
Renato Zannon
bad51b197f Fix new deprecations from collections reform 2014-11-07 18:28:31 -02:00
Renato Zannon
ba67a8b3b2 Updates to match new operator method lookup 2014-11-07 18:23:44 -02:00
Renato Zannon
d3a43a80cd Update to rust nightly (treemap -> tree_map) 2014-11-04 20:37:37 -02:00
Erick Tryzelaar
23f3173ded update to rust HEAD 2014-11-03 12:58:36 -08:00
Erick Tryzelaar
20e642420e Convert the json parser over to working with bytes 2014-10-23 10:26:52 -07:00
Erick Tryzelaar
475fd50564 rewrite deserialization to allow for copy-less struct fields 2014-10-23 10:26:52 -07:00
Erick Tryzelaar
292a820e3a silence some warnings 2014-10-23 10:26:52 -07:00
Erick Tryzelaar
2a40b4e810 Fix compiling json 2014-10-23 10:26:52 -07:00
Erick Tryzelaar
538fcf244f fix the remaining warnings 2014-10-06 21:50:22 -07:00
Erick Tryzelaar
da34268be1 Fix some lints 2014-10-06 21:44:01 -07:00
kvark
b08a647fc1 Fixed the stack overflow with an Writer wrapper 2014-10-06 23:22:18 -04:00
kvark
7ccb7fbf37 Fixed ranged match arm syntax 2014-10-04 22:05:29 -04:00
kvark
997d3901c1 Fixed all the tests 2014-09-29 21:58:22 -04:00
kvark
bfd1fb0ee9 Fixed String and Option conflicts for the latest Rust 2014-09-29 21:50:24 -04:00
kvark
4a713cdbea Improved SyntaxError 2014-09-07 09:59:17 -04:00
Erick Tryzelaar
6e1e8a75f3 Merge remote-tracking branch 'remotes/origin/master'
Conflicts:
	.gitignore
2014-09-07 01:20:51 -07:00
Erick Tryzelaar
0cd64bfb14 Move the benchmarks into a benches/ directory 2014-09-06 20:41:13 -07:00
kvark
6b62229dae Updated non_snake_case and struct lifetimes for the latest Rust 2014-09-04 21:57:13 -04:00
Erick Tryzelaar
4310645c7e factor out serde2 2014-09-01 13:39:00 -07:00
Erick Tryzelaar
34c38cf3a5 Experimenting with another serialization formulation 2014-09-01 13:14:56 -07:00
Erick Tryzelaar
3a6eb83da6 typarameterize Serializer 2014-09-01 13:14:52 -07:00
Erick Tryzelaar
a24075559f Move the Deserializer typarams onto from the method to the Deserializable trait 2014-08-19 15:18:47 -07:00
Erick Tryzelaar
25891838c4 revert the json i64/u64 support for now 2014-08-18 07:41:03 -07:00
Erick Tryzelaar
aff53e8dd4 allow the deserializer to optionally handle missing fields
This allows json to deserialize missing values as a `null`.
2014-08-18 07:40:36 -07:00
Erick Tryzelaar
c6d28afb6f add a "ignore_field" handler when a deserializable is skipping a field 2014-08-18 07:40:15 -07:00
Erick Tryzelaar
45e8bd6834 change error handlers to be mutable 2014-08-18 07:39:34 -07:00
Erick Tryzelaar
b09c6f3a87 remove bench_bytes 2014-08-15 13:21:15 -07:00
Erick Tryzelaar
d98aaaa54d Fix the docstrings and doctests 2014-08-15 08:13:20 -07:00
Erick Tryzelaar
111b916abb Export {S,Des}erializ{er,able} from serde module 2014-08-15 08:07:48 -07:00
Erick Tryzelaar
f967a77a80 add tests to deserializing sequences into a tuple 2014-08-14 19:08:41 -07:00
Erick Tryzelaar
5892d4fd67 implement to_json for most tuples 2014-08-14 19:03:51 -07:00
Erick Tryzelaar
dce88b74da Fix deserializing a tuple from a sequence 2014-08-14 19:03:23 -07:00
Erick Tryzelaar
9d1f777282 Share => Sync 2014-08-14 09:38:19 -07:00
Erick Tryzelaar
98aa2e7884 Flesh out error handling 2014-08-06 22:24:06 -04:00
Erick Tryzelaar
005b124cd3 simplify error reporting 2014-08-05 23:02:15 -04:00
Erick Tryzelaar
14d2254b2b Remove unused macro 2014-08-05 22:41:27 -04:00
Erick Tryzelaar
6f03528987 Fix an infinite loop in serializing boxed types 2014-08-04 22:31:07 -04:00
Erick Tryzelaar
00c01944cf add impls for {Hash,Tree}Sets 2014-08-04 16:53:21 -07:00
Erick Tryzelaar
8d188747b8 Return an error type instead of unwrapping in the vec serializer 2014-08-04 16:39:21 -07:00
Erick Tryzelaar
6357c56674 implement Serializable/Deserializable for box types 2014-08-04 16:38:43 -07:00
Erick Tryzelaar
d689bc8b85 initial support for more full error messages 2014-08-03 12:35:15 -07:00
Erick Tryzelaar
499638eccd simplify deserializing a value from a primitive 2014-08-03 12:34:57 -07:00
Erick Tryzelaar
dbc1cbcbfb implement bench_log::bench_deserializer 2014-08-02 16:06:05 -07:00
Erick Tryzelaar
5298bf0301 remove dead code 2014-08-02 15:46:07 -07:00