aboutsummaryrefslogtreecommitdiff
path: root/src/decoder
AgeCommit message (Collapse)AuthorLines
2017-02-08Rewrite crate with serde support from ground upAlex Crichton-1384/+0
This commit completely rewrites this crate from the ground up, supporting serde at the lowest levels as I believe serde support was intended to do. This is a major change from the previous versions of this crate, with a summary of changes being: * Serialization directly to TOML is now supported without going through a `Value` first. * Deserialization directly from TOML is now supported without going through a `Value`. Note that due to the TOML format some values still are buffered in intermediate memory, but overall this should be at a minimum now. * The API of `Value` was overhauled to match the API of `serde_json::Value`. The changes here were to: * Add `is_*` accessors * Add `get` and `get_mut` for one-field lookups. * Implement panicking lookups through `Index` The old `index` methods are now gone in favor of `get` and `Index` implementations. * A `Datetime` type has been added to represent a TOML datetime in a first-class fashion. Currently this type provides no accessors other than a `Display` implementation, but the idea is that this will grow support over time for decomposing the date. * Support for the `rustc-serialize` crate has been dropped, that'll stay on the 0.2 and 0.1 release trains. * This crate no longer supports the detection of unused fields, for that though you can use the `serde_ignored` crate on crates.io
2016-07-29Touch up the encoder/decoder a bitAlex Crichton-13/+4
* Whitespace things * Don't make `State` public * Remove `#[cfg]` annotations
2016-07-29Restore defaulted Deserializer methodsDavid Tolnay-18/+123
2016-07-28Cfg off functions only needed for rustc-serialize or serdeDavid Tolnay-13/+27
2016-07-28Update to serde 0.8.0David Tolnay-0/+124
2016-06-03Clippy runleonardo.yvens-5/+5
2016-03-11Fix last testsAlex Crichton-0/+13
2016-03-11Fix an error message test, simlify some serde codeAlex Crichton-100/+104
2016-03-07WIPAlex Crichton-42/+70
2016-01-21Address issues found by rust-clippyCorey Farwell-12/+10
2016-01-01Minor documentation grammar fixJake Goulding-2/+4
2015-12-18When decoding maps, leave fields that weren't processedAlex Crichton-28/+44
Fixes an XXX
2015-12-15Fixed bug: floats always end up in Decoder.toml, even when they haveCameron Silvestrini-1/+1
been successfully decoded.
2015-08-13Touch up some style in the decoderAlex Crichton-6/+12
2015-08-13Rewrite the MapVisitor to add errors for a specific fieldErick Tryzelaar-5/+24
2015-08-13Override the numeric hints to not deserialize ints into floats, and vice versaErick Tryzelaar-8/+81
2015-08-13Add a Deserialize::visit_enum that tries to deserialize into each variantErick Tryzelaar-0/+88
This could be more efficiently done if serde communicated the number of arguments in each variant in this function.
2015-08-12Get serde feature compiling againErick Tryzelaar-9/+9
2015-08-12Merge remote-tracking branch 'remotes/origin/master' into serdeErick Tryzelaar-9/+66
2015-08-06it helps to actually build with serde enabledBen Navetta-1/+3
2015-08-06implement serde::Deserialize for ValueBen Navetta-0/+41
2015-06-23Improve the error message in failing enumsAlex Crichton-9/+66
2015-06-06Rework fix for table redefinition to avoid breaking AST-compatiblityAndrzej Janik-7/+7
2015-06-04Disallow table redefinitionsAndrzej Janik-7/+7
2015-04-21Tweak some styleAlex Crichton-37/+46
2015-04-20most tests work nowOliver Schneider-34/+143
2015-04-20updated to masterOliver Schneider-1/+17
2015-04-02wipAlex Crichton-0/+153
2015-04-02Modularize rustc-serialize supportAlex Crichton-0/+516
* Add rustc-serialize as a default feature * Make room for for serde support