Commit Graph

627 Commits (master)

Author SHA1 Message Date
Alex Crichton be0f6fac0f Merge pull request #208 from vitiral/no-literal
add pretty_string_literal to be able to disable literal strings
2017-08-13 16:30:09 -07:00
Garrett Berg eaa0c17220 add pretty_string_literal to be able to disable literal strings 2017-08-13 17:19:02 -06:00
Alex Crichton 4b3139e2b6 Merge pull request #207 from vitiral/array-spaces
add spaces between array items and test for them
2017-08-13 18:15:41 -05:00
Garrett Berg a0d0a313df add spaces between array items and test for them 2017-08-13 15:31:09 -06:00
Alex Crichton ea251b3753 Merge pull request #204 from vitiral/rc_settings
reference count settings to bump performance a bit
2017-07-31 10:58:48 -05:00
Alex Crichton 5ccd015912 Merge pull request #205 from vitiral/pretty-doc
doc fixes
2017-07-31 10:23:10 -05:00
Garrett Berg 6a0f83290b don't run `cargo doc` for 1.15.0 2017-07-30 21:48:16 -06:00
Garrett Berg 09c0afaebe back out doc changes for now 2017-07-30 10:19:32 -06:00
Garrett Berg bfdbf1fcbc doc fixes 2017-07-30 10:18:00 -06:00
Garrett Berg 06df8e5a47 reference count settings to bump performance a bit 2017-07-29 00:41:35 -06:00
Alex Crichton db86a5d0a8 Bump to 0.4.4 2017-07-28 13:28:10 -07:00
Alex Crichton cb14d39f15 Merge pull request #201 from vitiral/triple
demonstrate tripple quote problem
2017-07-28 15:18:18 -05:00
Garrett Berg ca81a4a291 add """ for non-literals with newlines, clean up logic and add tests 2017-07-28 09:25:53 -06:00
Garrett Berg a29c1eeef0 make single lines also pretty 2017-07-28 07:14:37 -06:00
Garrett Berg 9548288de5 fix bugs with pretty 2017-07-27 22:01:36 -06:00
Alex Crichton 1a770fdb22 Bump to 0.4.3 2017-07-27 14:12:46 -07:00
Alex Crichton 6b3efa1e08 Merge pull request #199 from vitiral/empty-fails
demonstrate failing test for 'empty' values
2017-07-27 11:29:00 -05:00
Garrett Berg 219de2dd4d close #199: add header information for empty structs
- also add test which fails without this change
- also add a few helpful unit tests to table
2017-07-27 07:03:52 -06:00
Alex Crichton 71ac3e25f6 Merge pull request #197 from vitiral/pretty
close #119: allow "pretty" configuration
2017-07-24 18:22:33 -05:00
Garrett Berg 766b27e902 fix Serializer::pretty_array(false) 2017-07-24 09:46:24 -06:00
Garrett Berg 11e2baa1d4 add tests 2017-07-24 09:40:14 -06:00
Garrett Berg 8b7e1b69ad use ignore rather than no_run for toml blocks 2017-07-24 09:18:47 -06:00
Garrett Berg 0adce506fa fix docs and add 2017-07-22 15:11:23 -06:00
Garrett Berg e0bc36051a fix " 2017-07-21 12:03:42 -06:00
Garrett Berg 8e48136185 use builder pattern 2017-07-20 12:47:51 -06:00
Garrett Berg ef8af0e52a fix for rust 1.15 2017-07-10 09:45:59 -06:00
Garrett Berg ae6096ab26 pretty arrays 2017-07-09 15:20:29 -06:00
Garrett Berg ffdafc4d36 array doesn't break anything... 2017-07-09 15:10:36 -06:00
Garrett Berg 391cb61dff add pretty sting serialization 2017-07-09 14:58:48 -06:00
Garrett Berg 3c5a9486cb add Settings struct 2017-07-09 14:38:48 -06:00
Alex Crichton f6673dfdb3 One more case of handling newtype structs 2017-07-06 11:43:36 -07:00
Alex Crichton ad5bd8758e Support deserializing newtypes
Closes #196
2017-07-06 07:34:45 -07:00
Alex Crichton f6354998a5 Merge pull request #192 from debris/update_docs
updated toml version in the docs to 0.4.2
2017-06-23 18:02:11 -05:00
debris 86854fddbd updated toml version in the docs 0.4.2 2017-06-23 23:16:25 +02:00
Alex Crichton 5b7a619736 Bump to 0.4.2 2017-06-22 06:55:45 -07:00
Alex Crichton 708468ece7 Merge pull request #190 from SergioBenitez/master
Add exhaustive From<T> impls for Value
2017-06-20 10:17:08 -05:00
Sergio Benitez 6163e70884 Use 'into()' to convert numerical values safely 2017-06-19 17:49:55 -07:00
Sergio Benitez 46be6329c1 Add exhaustive From<T> impls for Value 2017-06-18 03:06:19 -07:00
Alex Crichton 6a3fba6e82 Merge pull request #188 from pitkley/add-intodeserializer
Implement `IntoDeserializer` for `Value`
2017-06-12 21:06:19 -05:00
Pit Kleyersburg ef1fd221a2 Implement `IntoDeserializer` for `Value` 2017-06-11 17:44:41 +02:00
Alex Crichton 00c1763e0b Merge pull request #187 from alanhdu/master
More fuzzing fixes
2017-06-01 17:57:13 -05:00
Alan Du 2dfc9fedd3 Store fractional seconds as a u32 instead of a f64
Drops precision down to the nanoseconds
2017-06-01 23:22:35 +01:00
Alan Du e4fdd0e4e4 Add toml::ser::Error::KeyNewline back in
Avoid a breaking change
2017-06-01 22:47:24 +01:00
Alan Du 69576569a7 Allow serializing keys with \n in them
Use special quoted form

Closes https://github.com/alexcrichton/toml-rs/issues/185
2017-06-01 20:59:26 +01:00
Alan Du dc407a6833 Truncate fractional seconds to picoseconds
Close https://github.com/alexcrichton/toml-rs/issues/186
2017-06-01 20:57:06 +01:00
Alex Crichton 36431af975 Merge pull request #184 from alanhdu/master
Serialize nested array of tables correctly
2017-06-01 08:36:08 -05:00
Alan Du 20dced6967 Add test case 2017-06-01 12:42:16 +01:00
Alan Du ba505647f2 Close #180 2017-06-01 12:42:16 +01:00
Alan Du 71b5310234 Remove unused test macro 2017-05-31 17:36:20 +01:00
Alex Crichton 95e1c73846 Merge pull request #183 from alanhdu/invalid_number
Better invalid number handling
2017-05-30 19:37:44 -05:00