Commit graph

423 commits

Author SHA1 Message Date
Alex Crichton b5af93a08e Bump to 0.1.23 2015-10-07 09:50:59 -07:00
Alex Crichton 67adf87dd4 Merge pull request #75 from andersforsgren/allow-toml-BOM
Allow BOM (Byte order mark) in toml
2015-10-07 09:50:44 -07:00
osboxes.org dea8646b8b Allow BOM (Byte order mark) in toml 2015-10-07 11:35:49 +02:00
Alex Crichton 96c6cd94ec Merge pull request #74 from GuillaumeGomez/master
Add Clone derive on ParserError
2015-09-29 17:31:39 -07:00
Guillaume Gomez db75e532e5 Add Clone derive on ParserError 2015-09-30 00:00:17 +02:00
Alex Crichton 283abf4a94 Merge pull request #73 from kerhong/travisci-stable
Add stable Rust build to Travis-CI config
2015-09-25 10:42:37 -07:00
Alex Crichton 24b022b485 Merge pull request #72 from kerhong/master
Implement Value::lookup for empty path to return self
2015-09-25 10:42:24 -07:00
Kerhong c17bb0fdac Add stable Rust build to Travis-CI config 2015-09-25 19:47:18 +03:00
Kerhong 547e202c15 Implement Value::lookup for empty path to return self 2015-09-25 19:26:47 +03:00
Alex Crichton bb12015a8a Protect against syntex upgrades
Check in a lock file for the serde-tests portion of the tests
2015-09-23 10:09:49 -07:00
Alex Crichton 181fc3849a Bump syntex dep for tests 2015-08-31 13:45:01 -07:00
Alex Crichton 64e64f0da7 Merge pull request #70 from mseri/patch-1
Fixed typo
2015-08-29 09:59:42 -07:00
mseri dc0aa5f6c4 Fixed typo 2015-08-29 12:47:21 +01:00
Alex Gulyás 64ae43a386 Fix the arithmetic overflow in Parser::to_linecol
This also changes the calculated line and column numbers. Without this
patch, if an error occurs at the end of a line, the returned line and
column numbers will point at the start of the next line.

After this patch, the line and column numbers will correctly point at
the end of the line where the actual parse error happened.
2015-08-14 14:54:32 +02:00
Alex Gulyás 0f0746396a Add a very simple test for Parser::to_linecol.
This test shows that in some cases converting error offsets generated by
the parser to line and column numbers will panic ('arithmetic operation
overflowed') in debug mode, and return an incorrect column number in
release mode.
2015-08-14 14:39:59 +02:00
Alex Crichton 13513f95b6 Bump to 0.1.22 2015-08-13 09:56:51 -07:00
Alex Crichton 7ec4821bd7 Touch up some style in the decoder 2015-08-13 09:47:40 -07:00
Alex Crichton f011b01051 Make serde-tests a standalone crate 2015-08-13 09:39:49 -07:00
Erick Tryzelaar 85cd6f3e6e Rewrite the MapVisitor to add errors for a specific field 2015-08-13 08:25:56 -07:00
Erick Tryzelaar 8c33064c2c Override the numeric hints to not deserialize ints into floats, and vice versa 2015-08-13 08:25:56 -07:00
Erick Tryzelaar e5efc8801d Add a Deserialize::visit_enum that tries to deserialize into each variant
This could be more efficiently done if serde communicated the
number of arguments in each variant in this function.
2015-08-13 08:25:56 -07:00
Erick Tryzelaar b7b31bf9da Implement Serialize::visit_newtype_{struct,variant}
These functions allow a serializer to not wrap a newtyped value
inside of a tuple or struct.
2015-08-13 07:42:06 -07:00
Erick Tryzelaar bbc167cde9 Get serde feature compiling again 2015-08-12 23:01:49 -07:00
Erick Tryzelaar 4e0172a9a5 Merge remote-tracking branch 'remotes/origin/master' into serde 2015-08-12 22:15:58 -07:00
Alex Crichton b70f6e53b2 Don't need to qualify String 2015-08-11 09:18:52 -07:00
Alex Crichton fac884d032 Merge pull request #66 from roguePanda/serde
Implement Deserialize for Value
2015-08-10 08:44:44 -07:00
Ben Navetta 8a2282fecd it helps to actually build with serde enabled 2015-08-06 23:33:39 -04:00
Ben Navetta 00337d088e implement serde::Deserialize for Value 2015-08-06 23:30:08 -04:00
Alex Crichton baf77e44c3 Add coverage badge 2015-07-10 15:10:57 -07:00
Alex Crichton 2683e19682 Upload docs only on nightly 2015-07-10 15:09:04 -07:00
Alex Crichton 5cf475fc40 Use travis-cargo for coverage + doc upload 2015-07-10 15:03:01 -07:00
Alex Crichton c5119e743c Bump to 0.1.21 2015-06-23 17:45:55 -07:00
Alex Crichton 89332806c5 Improve the error message in failing enums 2015-06-23 17:45:48 -07:00
Alex Crichton 27a70d4024 Name the fields of the custom table AST 2015-06-08 00:04:30 -07:00
Alex Crichton 00baf76107 Add a few more tests for redefining tables 2015-06-07 23:58:45 -07:00
Alex Crichton 88461157f2 Clean up more style 2015-06-07 23:57:50 -07:00
Alex Crichton 68924534e2 Use deref coercions 2015-06-07 23:48:32 -07:00
Alex Crichton e96e25bec7 Add a toml to json example 2015-06-07 23:47:29 -07:00
Alex Crichton 6580b77a20 Re-structure control flow a bit + modernization 2015-06-07 23:47:22 -07:00
Andrzej Janik 8487b63c97 Rework fix for table redefinition to avoid breaking AST-compatiblity 2015-06-06 18:11:48 +02:00
Andrzej Janik 2fcd829b1d Disallow table redefinitions 2015-06-04 20:23:46 +02:00
Alex Crichton 971700148b Test on beta as well 2015-05-15 11:52:49 -07:00
Alex Crichton 321afe6205 Try out a new travis config 2015-05-15 11:50:37 -07:00
Alex Crichton a65e91bf57 Continue to tweak travis for serde 2015-04-21 13:35:29 -07:00
Alex Crichton 94023b1d89 Fix serde-only compilation 2015-04-21 12:00:05 -07:00
Alex Crichton 3301c39630 Tweak some style 2015-04-21 09:16:06 -07:00
Alex Crichton 5dd623d3b1 Merge pull request #61 from oli-obk/serde
Serde
2015-04-21 09:15:19 -07:00
Oliver Schneider 6e2f2c39e4 most tests work now 2015-04-20 15:11:34 +02:00
Oliver Schneider ac86f4c941 updated to master 2015-04-20 12:29:58 +02:00
Alex Crichton 6713224564 Tweak doc url in README 2015-04-08 08:01:49 -07:00