serde/serde_tests/tests
David Tolnay 19ec8bbdb9 feat(codegen): Inhibit generic bounds if skip_serializing
The generated code for a struct like:

    struct Test<A, B, C> {
        a: X<A>
        #[serde(skip_serializing)]
        b: B
        #[serde(serialize_with="...")]
        c: C
    }

Used to be:

    impl<A, B, C> Serialize for Test<A, B, C>
        where A: Serialize,
              B: Serialize,
              C: Serialize,
    { ... }

Now it is:

    impl<A, B, C> Serialize for Test<A, B, C>
        where X<A>: Serialize,
    { ... }

Both `skip_serializing` and `serialize_with` mean the type does not need to
implement `Serialize`.
2016-02-28 19:11:51 -08:00
..
macros.rs Refactor tests to not use serde_json 2015-08-29 17:29:42 -07:00
test_annotations.rs feat(codegen): Inhibit generic bounds if skip_serializing 2016-02-28 19:11:51 -08:00
test_bytes.rs feat(errors): Switch Error::custom to use Into<String> 2016-02-26 21:12:16 -08:00
test_de.rs feat(serde): Add hooks for fixed-sized arrays 2016-02-23 05:15:44 -08:00
test_macros.rs feat(serde): Add hooks for fixed-sized arrays 2016-02-23 05:15:44 -08:00
test_ser.rs feat(serde): Add hooks for fixed-sized arrays 2016-02-23 05:15:44 -08:00
test.rs feat(de): Remove dependency on the num crate. 2016-02-21 21:22:58 -08:00
test.rs.in Refactor tests to not use serde_json 2015-08-29 17:29:42 -07:00
token.rs feat(errors): Switch Error::custom to use Into<String> 2016-02-26 21:12:16 -08:00