Age | Commit message (Collapse) | Author | Lines | |
---|---|---|---|---|
2017-02-08 | Rewrite crate with serde support from ground up | Alex Crichton | -4887/+4290 | |
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 | ||||
2017-01-09 | Clarify that serde is supported | Alex Crichton | -0/+9 | |
Closes #122 | ||||
2016-12-30 | Return encoding errors for NaN and infinite | Alex Crichton | -0/+19 | |
TOML can't actually represent them, so we should bail out. Closes #125 | ||||
2016-12-30 | Escape control characters when encoding strings | Alex Crichton | -0/+9 | |
Closes #126 | ||||
2016-09-06 | Don't space out the first table or array if not needed | nabijaczleweli | -4/+12 | |
Closes #110 | ||||
2016-08-16 | Fix a typo | Vinzent Steinberg | -1/+1 | |
2016-07-29 | Touch up the encoder/decoder a bit | Alex Crichton | -100/+180 | |
* Whitespace things * Don't make `State` public * Remove `#[cfg]` annotations | ||||
2016-07-29 | Restore defaulted Deserializer methods | David Tolnay | -18/+123 | |
2016-07-28 | Cfg off functions only needed for rustc-serialize or serde | David Tolnay | -13/+31 | |
2016-07-28 | Update to serde 0.8.0 | David Tolnay | -8/+138 | |
2016-07-15 | next iteration | Oliver Schneider | -10/+118 | |
2016-07-14 | adjust for seq/map ser revamp | Oliver Schneider | -23/+60 | |
2016-06-05 | Merge pull request #101 from leodasvacas/clippy-run | Alex Crichton | -37/+42 | |
Clippy run and implement Default for State and Enconder | ||||
2016-06-03 | Clippy run | leonardo.yvens | -38/+43 | |
2016-06-01 | Merge pull request #103 from MarkSwanson/lookup-lifetime-enhancement | Alex Crichton | -1/+1 | |
lookup() and lookup_mut() lifetime enhancements. | ||||
2016-05-31 | Fix serde tests on nightly | Alex Crichton | -0/+3 | |
2016-05-31 | Rely on lifetime elision. | Mark Swanson | -2/+2 | |
2016-05-30 | lookup() and lookup_mut() lifetime enhancements. | Mark Swanson | -2/+2 | |
Rationale: - The path has nothing to do with the result. - The path has no need to live as long as the Value/self. - In some cases it can be hard to actually build a path that meets the same lifetime requirements as the Value or String slice result. | ||||
2016-05-22 | Require newlines to be present after keys | Alex Crichton | -2/+35 | |
Closes #100 | ||||
2016-05-19 | Refactor checking for EOF into method | James Sanderson | -1/+6 | |
2016-05-19 | Accept empty table on last line | James Sanderson | -1/+1 | |
2016-05-19 | Failing test for empty table on last line | James Sanderson | -0/+8 | |
2016-05-16 | Fix accepting comments after table definitions | Alex Crichton | -3/+2 | |
2016-05-12 | Accept fractional seconds and timezones in datetime parsing | Alex Crichton | -41/+99 | |
Closes #96 | ||||
2016-05-12 | Add option to enable old behavior | Alex Crichton | -9/+23 | |
Cargo will use this in the interim. | ||||
2016-04-17 | Require a newline after table definition | James Sanderson | -1/+11 | |
2016-04-05 | Use different method to ensure unicode escape code is ASCII of expected length | Tae-il Lim | -2/+1 | |
2016-03-28 | Add a bunch of negative and positive tests | Bourgond Aries | -0/+28 | |
2016-03-28 | Leverage fn array_index to fn integer | Bourgond Aries | -16/+1 | |
2016-03-27 | Fix the indentation to be consistent with the repository | Bourgond Aries | -3/+3 | |
2016-03-27 | Add advanced lookup for table names | Bourgond Aries | -0/+7 | |
2016-03-27 | Add a test for lookup_mut_advanced | Bourgond Aries | -0/+9 | |
2016-03-27 | Implement advanced key lookup for lookup_mut | Bourgond Aries | -37/+6 | |
2016-03-27 | Implement a more advanced algorithm for lookup | Bourgond 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-25 | Add a test to see if the table's contents have changed | Bourgond Aries | -0/+22 | |
2016-03-25 | Implement the non-recursive lookup_mut | Bourgond Aries | -31/+95 | |
Also include some tests simply by copying and modifying the other tests for lookup. | ||||
2016-03-24 | Add lookup_mut method for mutable access | Bourgond 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-11 | Fix last tests | Alex Crichton | -0/+13 | |
2016-03-11 | Fix an error message test, simlify some serde code | Alex Crichton | -100/+104 | |
2016-03-07 | WIP | Alex Crichton | -70/+107 | |
2016-01-24 | Support literal strings in table names | Alex Crichton | -13/+26 | |
Closes #85 | ||||
2016-01-21 | Address issues found by rust-clippy | Corey Farwell | -33/+30 | |
2016-01-01 | Minor documentation grammar fix | Jake Goulding | -2/+4 | |
2015-12-18 | When decoding maps, leave fields that weren't processed | Alex Crichton | -28/+71 | |
Fixes an XXX | ||||
2015-12-15 | Fixed bug: floats always end up in Decoder.toml, even when they have | Cameron Silvestrini | -1/+1 | |
been successfully decoded. | ||||
2015-10-07 | Allow BOM (Byte order mark) in toml | osboxes.org | -0/+9 | |
2015-09-30 | Add Clone derive on ParserError | Guillaume Gomez | -1/+1 | |
2015-09-25 | Implement Value::lookup for empty path to return self | Kerhong | -0/+20 | |
2015-08-29 | Fixed typo | mseri | -1/+1 | |
2015-08-14 | Fix the arithmetic overflow in Parser::to_linecol | Alex 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. |