aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorLines
2017-06-01Allow serializing keys with \n in themAlan Du-8/+0
Use special quoted form Closes https://github.com/alexcrichton/toml-rs/issues/185
2017-06-01Truncate fractional seconds to picosecondsAlan Du-1/+4
Close https://github.com/alexcrichton/toml-rs/issues/186
2017-06-01Close #180Alan Du-1/+21
2017-05-30Merge pull request #183 from alanhdu/invalid_numberAlex Crichton-2/+21
Better invalid number handling
2017-05-31Error when trying to serialize invalid floatAlan Du-2/+15
2017-05-31Error when parsing numbers outside of f64's rangeAlan Du-0/+6
2017-05-30Encode control characters with hex not decimalAlan Du-1/+1
Fix https://github.com/alexcrichton/toml-rs/issues/178
2017-05-30Store fraction of seconds in times unconditionallyAlan Du-5/+5
This way, times without fractional seconds will be compare equal to times with 0 fractional seconds if all else is equal. For example, 06:00:00 == 06:00:00.0 Closes https://github.com/alexcrichton/toml-rs/issues/179
2017-05-10Merge pull request #172 from rap2hpoutre/patch-1Alex Crichton-0/+31
add example for from_str
2017-05-10add example for to_stringRaphaël Huchet-0/+35
2017-05-10Update de.rsRaphaël Huchet-1/+1
2017-05-10add example for from_strRaphaël Huchet-0/+31
2017-05-09Document that line/col indices are 0 basedOliver Schneider-0/+2
2017-05-09Allow extracting the location of the errorOliver Schneider-0/+5
2017-05-02Update doc urls to 0.4Alex Crichton-2/+2
Closes #168
2017-04-28Merge pull request #165 from Keats/masterAlex Crichton-6/+67
Allow to deserialize/serialize into enums
2017-04-28Address comment and make test passVincent Prouillet-90/+28
2017-04-25Deserialize enum in ValueVincent Prouillet-2/+89
2017-04-25Remove everything other than enum variant codeVincent Prouillet-97/+0
2017-04-24Fixed the serde dependency in the documentationDzmitry Malyshau-1/+1
2017-04-24Allow to deserialize/serialize into enumsVincent Prouillet-3/+136
Close #164
2017-04-20Support serde 1.0.0Alex Crichton-165/+151
2017-04-12Remove lifetimesDaniel Lockyer-1/+1
2017-04-12Stop taking references when not neededDaniel Lockyer-6/+6
2017-04-12Simplify if-statementsDaniel Lockyer-11/+10
2017-04-12Switch from comparison to is_empty()Daniel Lockyer-3/+3
2017-04-12Remove unneeded return statementsDaniel Lockyer-4/+4
2017-04-05Merge pull request #161 from colin-kiegel/crate-polishAlex Crichton-137/+2
Crate polish
2017-04-05Replace unwrap with expect in public methodsMatthias Endler-4/+4
2017-04-05group mod statements consistentlyColin Kiegel-1/+1
2017-04-05remove deadcode (unused since f66d8bcf33530c858a5)Colin Kiegel-134/+0
2017-04-05doc - group link definitionsColin Kiegel-2/+1
2017-03-31Fix backcompat with array definitionsAlex Crichton-1/+6
2017-02-21Relax assertions in substr_offset slightlyAlex Crichton-1/+1
Closes #152
2017-02-21Merge pull request #151 from EPashkin/fix_table_values_sortingAlex Crichton-2/+2
Fixed sorting of table values
2017-02-21Add support for `serialize_bytes`Alex Crichton-3/+4
Just serialize as a list of numbers. Closes #150
2017-02-19Fixed sorting of table valuesEvgenii Pashkin-2/+2
2017-02-11Fix displaying empty arraysAlex Crichton-8/+6
Closes #145
2017-02-10Add a serialization helper to put tables lastAlex Crichton-2/+266
This should help serializing maps where it's unknown up front whether the tables and/or values come first. Closes #142
2017-02-10Update ser.rsJonas mg-1/+1
2017-02-09Remove newline that causes strange renderingJake Goulding-1/+0
2017-02-09Tighten up the crate-level docsJake Goulding-11/+12
2017-02-09Grammar on Value doc stringsJake Goulding-3/+3
2017-02-08Implement Deserializer::set_require_newline_after_tableAlex Crichton-6/+26
2017-02-08Rewrite crate with serde support from ground upAlex 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-09Clarify that serde is supportedAlex Crichton-0/+9
Closes #122
2016-12-30Return encoding errors for NaN and infiniteAlex Crichton-0/+19
TOML can't actually represent them, so we should bail out. Closes #125
2016-12-30Escape control characters when encoding stringsAlex Crichton-0/+9
Closes #126
2016-09-06Don't space out the first table or array if not needednabijaczleweli-4/+12
Closes #110
2016-08-16Fix a typoVinzent Steinberg-1/+1