serde/serde_tests
Erick Tryzelaar de89f95f31 feat(codegen): Add support for #![serde(skip_serialize_if="$expr")]
This allows end users to use an arbitrary expression to decide whether
or not to serialize some field. This expression has access to all the
fields in the struct, but none of the internal state of the Serialize
implementation. For structs, serde implements this by creating a
temporary trait and implementing the struct for it. For struct variants,
the fields are copied by reference into a temporary struct first
before implementing the temporary trait.

This also fixes a bug where the serde_codegen wasn't making calls to
Serializer::serialize_{tuple,struct}_variant{,_elt}.
2016-02-18 19:13:55 -08:00
..
benches chore(tests): Silence some warnings 2016-02-08 13:37:03 -08:00
tests feat(codegen): Add support for #![serde(skip_serialize_if="$expr")] 2016-02-18 19:13:55 -08:00
build.rs Initial support for syntex 2015-05-18 23:34:17 -07:00
Cargo.toml feat(cargo): Rustup to latest nightly 2016-02-18 09:27:41 -08:00