Adolfo Ochagavía
9f668fd541
Fix \r\n on multiline strings and add comments
2014-10-30 21:49:47 +01:00
Steve Klabnik
334b30bb3d
fail -> panic
2014-10-29 21:45:18 -04:00
Louis Morgan
46f3872415
Fix deprecation warnings: push_char => push
2014-10-11 18:04:44 +01:00
Cristian Cobzarenco
1f79d9e7d3
Export DecodeErrorKind c-tors publicly.
2014-10-03 14:38:57 +01:00
Alex Crichton
8cdb2747de
Allow warnings for now
2014-09-23 06:39:48 -07:00
Björn Steinbrink
a56c686cc4
Remove allow(visible_private_types)
...
It's not needed and no longer supported by rustc anyway.
2014-09-23 11:38:12 +02:00
Alex Crichton
22ad6e7ea9
Update to rust master
...
Closes #19
2014-09-21 07:55:19 -07:00
Alex Crichton
1ca52c5ea4
Merge pull request #17 from jroesch/into-iter
...
Update uses of move_iter() to into_iter()
2014-09-18 09:50:04 -04:00
Jared Roesch
ef4e8f58ac
Update show to print an error instead of failing
2014-09-17 22:01:17 -07:00
Jared Roesch
d2208b1d2b
Update uses of move_iter() to into_iter()
2014-09-17 21:51:25 -07:00
Valerii Hiora
25703d5f79
Updated to _mut conventions
2014-09-17 10:00:15 +03:00
Brian Koropoff
a9297d3cac
Fix build break due to generalized type parameter bounds
2014-08-28 21:38:53 -07:00
Julian Orth
3ad7e6055c
add crate_name
2014-08-24 11:26:33 +02: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
934e093047
Put documentation on github
2014-08-03 21:36:44 -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
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
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
Michael Gehring
46ab9eb436
ToStr::to_str -> ToString::to_string
2014-07-09 15:46:49 +02: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
caf4071137
Add a CRLF test
2014-06-26 19:27:42 -07: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
Alex Crichton
f06fae1602
Implement Encoder/Decoder for libserialize traits
2014-06-22 22:23:27 -07:00
Alex Crichton
3bbf216491
Add documentation and examples
2014-06-20 17:30:08 -07:00
Alex Crichton
11115f13a3
Initial commit
2014-06-20 17:01:38 -07:00