serde/serde_tests
Erick Tryzelaar f1b20577d3 feat(ser): Add ser::Error trait; avoid panic when serializing Paths
The only way to safely serialize a `Path` is to use
`.to_string_lossy()`, which replaces invalid UTF-8 characters with
the U+FFFD replacement character. Unfortunately this would lose
information, so for our default implementations, it'd be better
to punt and report an error, and leave it up to the user to
decide if they want to use the lossy encoding.

Unfortunately, we had no way for `Serializer`s to require some methods
on `Serializer::Error`, so there was no way before this patch for
the `Path` implementation to generically report that it cannot encode
this value. This adds that implementation.

breaking-change

Closes #57.
2016-01-28 10:41:21 -08:00
..
benches Merge branch 'v0.6.x' into master 2016-01-18 12:45:39 -08:00
tests feat(ser): Add ser::Error trait; avoid panic when serializing Paths 2016-01-28 10:41:21 -08:00
build.rs Initial support for syntex 2015-05-18 23:34:17 -07:00
Cargo.toml Bump clippy dependency to compile on 1.8. 2016-01-23 16:15:31 -08:00