Commit graph

487 commits

Author SHA1 Message Date
Alex Crichton b44ea161d3 Merge pull request #217 from dtolnay/macro
A toml macro
2017-11-20 13:39:31 -06:00
David Tolnay eab7d806e9 A toml macro 2017-11-12 23:46:34 -08:00
David Tolnay cdb1bfd237 Move tests into their own crate 2017-11-12 19:33:11 -08:00
Alex Crichton 9d2f3453d1 Clarify wording of license information in README.
This text historically was copied verbatim from rust-lang/rust's own README [1]
with the intention of licensing projects the same as rustc's own license, namely
a dual MIT/Apache-2.0 license. The clause about "various BSD-like licenses"
isn't actually correct for almost all projects other than rust-lang/rust and
the wording around "both" was slightly ambiguous.

This commit updates the wording to match more precisely what's in the
standard library [2], namely clarifying that there aren't any BSD-like licenses
in this repository and that the source is licensable under either license, at
your own discretion.

[1]: f0fe716dbc (license)
[2]: f0fe716dbc/src/libstd/lib.rs (L5-L9)
2017-10-30 14:51:07 -07:00
Alex Crichton a3f02da0c3 Merge pull request #213 from behnam/doc
[value] Fix some method docs
2017-09-15 09:07:55 -05:00
Behnam Esfahbod ✅ b7af13e689 [value] Fix some method docs 2017-09-14 22:37:51 -07:00
Alex Crichton dd4c5131eb Fix a number of compile warnings 2017-08-28 07:40:48 -07:00
Alex Crichton 66a37a5182 Bump to 0.4.5 2017-08-13 21:02:21 -07:00
Alex Crichton c39ce05522 Merge pull request #210 from vitiral/rm-fixme
close #209: remove FIXME, appears to have been invalid
2017-08-13 21:02:01 -07:00
Garrett Berg 0fadae214a close #209: remove FIXME, appears to have been invalid 2017-08-13 17:34:36 -06:00
Alex Crichton 086814210f 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 d386be1a49 add pretty_string_literal to be able to disable literal strings 2017-08-13 17:19:02 -06:00
Alex Crichton 8554fda201 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 76f11f2033 add spaces between array items and test for them 2017-08-13 15:31:09 -06:00
Alex Crichton ea0c2296e6 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 fefd364371 Merge pull request #205 from vitiral/pretty-doc
doc fixes
2017-07-31 10:23:10 -05:00
Garrett Berg 0552812f1a don't run cargo doc for 1.15.0 2017-07-30 21:48:16 -06:00
Garrett Berg 9443fbf01f back out doc changes for now 2017-07-30 10:19:32 -06:00
Garrett Berg eb69fee5ff doc fixes 2017-07-30 10:18:00 -06:00
Garrett Berg 003a65fc9f reference count settings to bump performance a bit 2017-07-29 00:41:35 -06:00
Alex Crichton 3555478fba Bump to 0.4.4 2017-07-28 13:28:10 -07:00
Alex Crichton 29578669f2 Merge pull request #201 from vitiral/triple
demonstrate tripple quote problem
2017-07-28 15:18:18 -05:00
Garrett Berg 54a4833bc1 add """ for non-literals with newlines, clean up logic and add tests 2017-07-28 09:25:53 -06:00
Garrett Berg dabe477d64 make single lines also pretty 2017-07-28 07:14:37 -06:00
Garrett Berg 83be829f0b fix bugs with pretty 2017-07-27 22:01:36 -06:00
Alex Crichton f81a488362 Bump to 0.4.3 2017-07-27 14:12:46 -07:00
Alex Crichton 0344559a07 Merge pull request #199 from vitiral/empty-fails
demonstrate failing test for 'empty' values
2017-07-27 11:29:00 -05:00
Garrett Berg 61ff3c295c 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 05a8c73439 Merge pull request #197 from vitiral/pretty
close #119: allow "pretty" configuration
2017-07-24 18:22:33 -05:00
Garrett Berg 203b4d43c2 fix Serializer::pretty_array(false) 2017-07-24 09:46:24 -06:00
Garrett Berg e26449614d add tests 2017-07-24 09:40:14 -06:00
Garrett Berg fba6170b95 use ignore rather than no_run for toml blocks 2017-07-24 09:18:47 -06:00
Garrett Berg ec82e695ba fix docs and add 2017-07-22 15:11:23 -06:00
Garrett Berg 973e4cc8c7 fix " 2017-07-21 12:03:42 -06:00
Garrett Berg 1e060c55d6 use builder pattern 2017-07-20 12:47:51 -06:00
Garrett Berg 81d7303b19 fix for rust 1.15 2017-07-10 09:45:59 -06:00
Garrett Berg 3ec47e6758 pretty arrays 2017-07-09 15:20:29 -06:00
Garrett Berg 27757113ec array doesn't break anything... 2017-07-09 15:10:36 -06:00
Garrett Berg fe894fee6c add pretty sting serialization 2017-07-09 14:58:48 -06:00
Garrett Berg 36a4ebd3bf add Settings struct 2017-07-09 14:38:48 -06:00
Alex Crichton 66bbdb36a6 One more case of handling newtype structs 2017-07-06 11:43:36 -07:00
Alex Crichton 7a8c535c5a Support deserializing newtypes
Closes #196
2017-07-06 07:34:45 -07:00
Alex Crichton 5bd60e7397 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 eb138b12b9 updated toml version in the docs 0.4.2 2017-06-23 23:16:25 +02:00
Alex Crichton 49b0b3df2b Bump to 0.4.2 2017-06-22 06:55:45 -07:00
Alex Crichton 3b4261a4bb Merge pull request #190 from SergioBenitez/master
Add exhaustive From<T> impls for Value
2017-06-20 10:17:08 -05:00
Sergio Benitez 7f9e594e47 Use 'into()' to convert numerical values safely 2017-06-19 17:49:55 -07:00
Sergio Benitez f936fcfb13 Add exhaustive From<T> impls for Value 2017-06-18 03:06:19 -07:00
Alex Crichton 5c523f14d5 Merge pull request #188 from pitkley/add-intodeserializer
Implement `IntoDeserializer` for `Value`
2017-06-12 21:06:19 -05:00
Pit Kleyersburg e89345af42 Implement IntoDeserializer for Value 2017-06-11 17:44:41 +02:00