aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorLines
2016-03-27Implement advanced key lookup for lookup_mutBourgond Aries-37/+6
2016-03-27Implement a more advanced algorithm for lookupBourgond Aries-9/+133
The new algorithm allows the explicit usage of "" and '' to denote key names. This is useful for accessing tables or keys that are named in a non-conventional manner.
2016-03-25Add a test to see if the table's contents have changedBourgond Aries-0/+22
2016-03-25Implement the non-recursive lookup_mutBourgond Aries-31/+95
Also include some tests simply by copying and modifying the other tests for lookup.
2016-03-24Add lookup_mut method for mutable accessBourgond Aries-0/+62
Mutable access may sometimes be desired in order to change values in the toml table. This can be used for dynamic configurations which will be easy to modify and store. lookup_mut requires a recursive method due to the borrow checker not allowing to have more than one mutable reference in the same scope.
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-70/+107
2016-01-24Support literal strings in table namesAlex Crichton-13/+26
Closes #85
2016-01-21Address issues found by rust-clippyCorey Farwell-33/+30
2016-01-01Minor documentation grammar fixJake Goulding-2/+4
2015-12-18When decoding maps, leave fields that weren't processedAlex Crichton-28/+71
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-10-07Allow BOM (Byte order mark) in tomlosboxes.org-0/+9
2015-09-30Add Clone derive on ParserErrorGuillaume Gomez-1/+1
2015-09-25Implement Value::lookup for empty path to return selfKerhong-0/+20
2015-08-29Fixed typomseri-1/+1
2015-08-14Fix the arithmetic overflow in Parser::to_linecolAlex Gulyás-1/+1
This also changes the calculated line and column numbers. Without this patch, if an error occurs at the end of a line, the returned line and column numbers will point at the start of the next line. After this patch, the line and column numbers will correctly point at the end of the line where the actual parse error happened.
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-13Implement Serialize::visit_newtype_{struct,variant}Erick Tryzelaar-0/+18
These functions allow a serializer to not wrap a newtyped value inside of a tuple or struct.
2015-08-12Get serde feature compiling againErick Tryzelaar-9/+9
2015-08-12Merge remote-tracking branch 'remotes/origin/master' into serdeErick Tryzelaar-118/+256
2015-08-11Don't need to qualify StringAlex Crichton-2/+1
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-08Name the fields of the custom table ASTAlex Crichton-23/+32
2015-06-07Add a few more tests for redefining tablesAlex Crichton-4/+19
2015-06-07Clean up more styleAlex Crichton-51/+33
2015-06-07Use deref coercionsAlex Crichton-2/+3
2015-06-07Re-structure control flow a bit + modernizationAlex Crichton-52/+35
2015-06-06Rework fix for table redefinition to avoid breaking AST-compatiblityAndrzej Janik-64/+123
2015-06-04Disallow table redefinitionsAndrzej Janik-39/+72
2015-04-21Fix serde-only compilationAlex Crichton-1/+1
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/+239
2015-04-02Modularize rustc-serialize supportAlex Crichton-1339/+1425
* Add rustc-serialize as a default feature * Make room for for serde support
2015-04-01Bump to 0.1.20Alex Crichton-3/+1
2015-03-25Bump to 0.1.19Alex Crichton-4/+3
2015-03-20Implement Encodable for ValueAlex Crichton-2/+51
We can't generically decode into one, but we can generically encode one! Closes #58
2015-03-15Improve test coverageAlex Crichton-2/+74
2015-03-09Reduce usage of unstable featuresAlex Crichton-22/+26
2015-03-03Don't upload extra docs on travisAlex Crichton-0/+1
2015-03-03Add a doc root urlSteven Fackler-1/+1
2015-02-23Move away from deprecated syntaxAlex Crichton-2/+2