Commit graph

307 commits

Author SHA1 Message Date
Alex Crichton 8c128cb550 Merge pull request #13 from mahkoh/name
add crate_name
2014-08-24 16:29:05 -04:00
Julian Orth 3ad7e6055c add crate_name 2014-08-24 11:26:33 +02:00
Alex Crichton e7c7bba846 Merge pull request #12 from bkoropoff/build-fix
Fix build break due to import shadowing
2014-08-17 17:23:36 -07:00
Brian Koropoff 04827b4d07 Rename parser::Error to parser::ParseError
This avoids a conflict with serialization::Error and
actually re-exports it from the crate root as intended.
It also fixes a build break due to the new import
shadowing gate in rustc.
2014-08-17 16:46:08 -07:00
Alex Crichton a4f07b40f5 Cargo now runs doc tests 2014-08-07 09:09:55 -07:00
Alex Crichton 934e093047 Put documentation on github 2014-08-03 21:36:44 -07:00
Alex Crichton b5e110caf4 Remove Makefile 2014-08-03 17:15:33 -07:00
Alex Crichton 7e1c1e127d Merge pull request #10 from apoelstra/apperror
Add required `error` method to `Decoder`
2014-08-01 10:26:49 -07:00
Andrew Poelstra e5763bc6b2 Add required error method to Decoder
Since rustc pull #16130 there has been a new method in the `Decoder`
trait for signalling application-specific decode errors.
2014-08-01 10:17:21 -07:00
Alex Crichton a3c7f2c38e Don't escape / when printing.
It's not necessary and it's a little ugly to look at
2014-07-18 14:28:06 -07:00
Alex Crichton 76cf3d1d3e Merge pull request #8 from huonw/fixit
Disambiguate "" empty strings from multiline strings properly.
2014-07-18 09:55:32 -04:00
Huon Wilson e756f56b62 Disambiguate "" empty strings from multiline strings properly.
Previously `""` would go into multiline mode and thus *require* a
following ".
2014-07-18 20:20:45 +10:00
Alex Crichton 05f8c0bc41 Merge pull request #6 from michaelsproul/vec-get
Remove use of deprecated vector get method.
2014-07-17 09:39:33 -04:00
Michael Sproul 9b9a43a034 Remove use of deprecated vector get method. 2014-07-17 20:54:34 +10:00
Alex Crichton 3a7ec7f4c4 Update an error message with \U support 2014-07-15 19:13:42 -07:00
Alex Crichton c4d9e5c0b4 Fix doc tests 2014-07-15 19:05:22 -07:00
Alex Crichton 98a5e0e244 Implement multiline string literals
While I'm at it, implement literal strings as well.

Closes #5
2014-07-15 19:00:50 -07:00
Alex Crichton 5b6053fdac Support \U escapes in strings 2014-07-15 18:43:00 -07:00
Alex Crichton b4a4ed72d7 Migrate to a TreeMap for determinism 2014-07-15 17:30:00 -07:00
Alex Crichton bec6b768ec Update travis config 2014-07-14 12:51:12 -07:00
Alex Crichton 3f6def94a4 Update travis config 2014-07-10 12:34:53 -07:00
Alex Crichton a0f1ea65fc Merge pull request #4 from ebfe/fix-build-master
ToStr::to_str -> ToString::to_string
2014-07-09 10:49:25 -04:00
Michael Gehring 46ab9eb436 ToStr::to_str -> ToString::to_string 2014-07-09 15:46:49 +02:00
Alex Crichton 624d539818 --crate-file-name => --print-file-name 2014-07-07 06:24:37 -07:00
Alex Crichton 6e0701caa5 Add a test for _ => - translation 2014-07-02 18:43:32 -07:00
Yehuda Katz + Carl Lerche 806a7bd937 Decodes foo-bar into a field named foo_bar
This logic is specific to the Decoder, and because Rust does not support
hyphenated names as identifiers, it's the only reasonable thing to do
with hyphenated names in Toml.
2014-07-02 17:23:35 -07:00
Alex Crichton e32363c788 Fix tests on master 2014-07-01 06:30:17 -07:00
Alex Crichton 713816102b Remove stray println!() 2014-06-28 15:16:15 -07:00
Alex Crichton b4f706cceb Be more resilient about unused values in array 2014-06-28 15:15:25 -07:00
Alex Crichton 85af174778 Always remove Array values from the Decoder 2014-06-28 15:00:45 -07:00
Alex Crichton 0f20aad823 Prune more unused fields 2014-06-28 14:49:04 -07:00
Alex Crichton 6b4f33444a Don't leave empty tables lying around 2014-06-28 14:42:30 -07:00
Alex Crichton 9c1806283c Merge pull request #1 from vhbit/lookups
Path lookups
2014-06-27 13:53:15 -04:00
Valerii Hiora 13cc8a9201 Fixed tests, merged lookup functions 2014-06-27 17:28:55 +03:00
Alex Crichton 0f9410a7f0 Document a new public field 2014-06-26 22:55:20 -07:00
Alex Crichton c28df7cb52 Leave unused keys in TOML while decoding 2014-06-26 22:52:31 -07:00
Alex Crichton 7ba80c5ac4 Make some makefile variables overridable 2014-06-26 19:27:42 -07:00
Alex Crichton caf4071137 Add a CRLF test 2014-06-26 19:27:42 -07:00
Alex Crichton 66c83483f8 Merge pull request #2 from dtrebbien/patch-integer-suffix-fix
Fix "error: cannot determine the type of this integer"
2014-06-25 10:03:29 -04:00
Valerii Hiora 2047fa3bc9 Added separate tests, moved comments 2014-06-25 17:00:10 +03:00
Daniel Trebbien 8524f2b2c2 Fix "error: cannot determine the type of this integer" 2014-06-25 08:42:46 -04:00
Valerii Hiora dd828e613b Path lookups 2014-06-25 12:22:11 +03:00
Alex Crichton b663d6ae99 Handle \r\n 2014-06-23 22:28:53 -07:00
Alex Crichton 6e30770355 Fix a test 2014-06-23 11:17:39 -07:00
Alex Crichton ed88ef0b81 Expose kinds of errors 2014-06-23 10:58:06 -07:00
Alex Crichton 21e91fe753 Add Encodable/Decodable support for enums 2014-06-23 09:37:13 -07:00
Alex Crichton cd4fede072 Add a method for converting to (line, column) 2014-06-23 08:58:44 -07:00
Alex Crichton 3ff116ea84 Add a test for a missing field 2014-06-23 08:50:00 -07:00
Alex Crichton 266cd75e92 Improve decoder errors 2014-06-23 08:38:45 -07:00
Alex Crichton 16d5e67fa5 Clean up warnings and documentation 2014-06-22 22:31:09 -07:00