Commit graph

457 commits

Author SHA1 Message Date
Alex Crichton e95a6cbc67 Merge pull request #166 from kvark/patch-1
Fixed the serde dependency in the documentation
2017-04-24 22:31:13 +08:00
Dzmitry Malyshau 962506e5d6 Fixed the serde dependency in the documentation 2017-04-24 10:05:55 -04:00
Vincent Prouillet 7cb357c168 Allow to deserialize/serialize into enums
Close #164
2017-04-24 22:13:38 +09:00
Alex Crichton 046a3e5117 Bump to 0.4.0 2017-04-20 14:20:15 -07:00
Alex Crichton dc5ff1ef90 Support serde 1.0.0 2017-04-20 10:16:00 -07:00
Alex Crichton 8683f1d22b Merge pull request #157 from neosilky/clippy-fixes
Fix issues indicated by clippy
2017-04-12 09:13:50 -05:00
Daniel Lockyer 469e9f6bd2 Remove lifetimes 2017-04-12 09:29:00 +01:00
Daniel Lockyer cecb0b58a7 Stop taking references when not needed 2017-04-12 09:29:00 +01:00
Daniel Lockyer 3034a7cf52 Simplify if-statements 2017-04-12 09:28:56 +01:00
Daniel Lockyer 50714395c2 Switch from comparison to is_empty() 2017-04-12 09:24:16 +01:00
Daniel Lockyer de940a3373 Remove unneeded return statements 2017-04-12 09:24:16 +01:00
Alex Crichton a87d005cc1 Merge pull request #161 from colin-kiegel/crate-polish
Crate polish
2017-04-05 16:50:51 -07:00
Alex Crichton b3a92872a1 Merge pull request #160 from mre/error-handling-unwrap
Replace unwrap with expect in public-facing code
2017-04-05 16:49:48 -07:00
Matthias Endler 6f2f475b88 Replace unwrap with expect in public methods 2017-04-05 21:56:18 +02:00
Colin Kiegel 22168aa100 group mod statements consistently 2017-04-05 21:30:32 +02:00
Colin Kiegel 36b9b268ba remove deadcode (unused since e256931e9b) 2017-04-05 21:24:11 +02:00
Colin Kiegel 44c738acfd travis - run tests on 1.15.0 2017-04-05 21:05:35 +02:00
Colin Kiegel 9d761f5614 doc - group link definitions 2017-04-05 20:51:36 +02:00
Alex Crichton 8207fda489 Merge pull request #158 from mre/patch-1
Add a beautiful badge for docs.rs
2017-04-05 11:22:35 -07:00
Matthias Endler 0dd2216983 Add a beautiful badge for docs.rs 2017-04-05 20:17:24 +02:00
Alex Crichton 7e8131ba43 Bump to 0.3.2 2017-03-31 18:45:14 -07:00
Alex Crichton 5152f3aca0 Fix backcompat with array definitions 2017-03-31 18:45:00 -07:00
Alex Crichton 9880b2518a Bump to 0.3.1 2017-02-27 12:51:30 -08:00
Alex Crichton b6178aed2a Relax assertions in substr_offset slightly
Closes #152
2017-02-21 20:27:43 -08:00
Alex Crichton c680668d22 Merge pull request #151 from EPashkin/fix_table_values_sorting
Fixed sorting of table values
2017-02-21 09:31:19 -06:00
Alex Crichton edf22b74a1 Add support for serialize_bytes
Just serialize as a list of numbers.

Closes #150
2017-02-21 06:21:00 -08:00
Evgenii Pashkin ded040ae9e Fixed sorting of table values 2017-02-19 18:15:58 +03:00
Alex Crichton a47c66a81d Merge pull request #148 from rekka/patch-1
Fix serde.rs link in README.md
2017-02-13 08:28:01 -06:00
Norbert Pozar 6a792b3993 Fix serde.rs link in README.md 2017-02-13 11:00:47 +09:00
Alex Crichton 2fd12e72d8 Fix displaying empty arrays
Closes #145
2017-02-11 09:13:33 -08:00
Alex Crichton 7b50680c7d Bump to 0.3.0 2017-02-10 15:31:42 -08:00
Alex Crichton 67fb9f1953 Add a serialization helper to put tables last
This should help serializing maps where it's unknown up front whether the tables
and/or values come first.

Closes #142
2017-02-10 15:29:36 -08:00
Alex Crichton 5906fa71b5 Merge pull request #144 from tredoe/patch-1
Add Eq trait in main error
2017-02-10 15:09:34 -06:00
Jonas mg b5ec7d2c33 Update ser.rs 2017-02-10 14:37:47 +00:00
Alex Crichton 07874c7f94 Merge pull request #141 from shepmaster/prose
Minor prose fixes
2017-02-09 10:08:52 -08:00
Jake Goulding 90630d66fb Remove newline that causes strange rendering 2017-02-09 10:41:58 -05:00
Jake Goulding f49d0b3246 Tighten up the crate-level docs 2017-02-09 10:12:23 -05:00
Jake Goulding 22c3df7625 Grammar on Value doc strings 2017-02-09 10:09:20 -05:00
Alex Crichton d02c02d995 Implement Deserializer::set_require_newline_after_table 2017-02-08 21:36:38 -08:00
Alex Crichton 35ea81f136 Update metadata 2017-02-08 21:27:28 -08:00
Alex Crichton f49150f85b Merge pull request #137 from alexcrichton/serde-upgrade
Rewrite crate with serde support from ground up
2017-02-08 21:23:29 -08:00
Alex Crichton e256931e9b Rewrite crate with serde support from ground up
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-02-08 21:21:18 -08:00
Alex Crichton 4c358121bb Merge pull request #134 from SamWhited/patch-1
Add a latest version shield to the readme
2017-01-28 18:02:34 -08:00
Sam Whited 67855a21c5 Add a latest version shield to the readme 2017-01-27 19:04:31 -06:00
Alex Crichton 0dc5347946 Clarify that serde is supported
Closes #122
2017-01-09 17:37:05 -08:00
Alex Crichton 5907e0a7d0 Return encoding errors for NaN and infinite
TOML can't actually represent them, so we should bail out.

Closes #125
2016-12-30 17:40:40 -08:00
Alex Crichton f66b9913f9 Escape control characters when encoding strings
Closes #126
2016-12-30 17:34:11 -08:00
Alex Crichton 414a61cb84 Update travis token 2016-11-19 09:16:51 -08:00
Alex Crichton 659bbfa570 Touch up the decode example 2016-10-02 23:26:51 -07:00
Alex Crichton 552e785a2a Merge pull request #114 from kper/master
Add example for decoding toml to struct
2016-10-02 23:23:24 -07:00