David Tolnay
7375b4e847
Add travis builds for 1.6.0 and 1.7.0
2016-06-11 08:59:02 -07:00
David Tolnay
9834af7ed9
Stop building on 1.5.0
...
Syntex no longer supports this version of Rust.
2016-06-11 01:31:17 -07:00
David Tolnay
3119cc8857
Simplify implementation of #[serde(default=...)]
2016-06-09 23:21:42 -07:00
David Tolnay
bb059b97c0
Release 0.7.9
2016-06-09 20:16:49 -07:00
David Tolnay
a64fe99d1b
Add cargo override for building examples
2016-06-09 11:23:43 -07:00
David Tolnay
c716c4e261
Use AsRef to accept paths in serde_codegen::expand
2016-06-09 11:23:43 -07:00
David Tolnay
3d2e3beafe
Add serde_codegen::expand to avoid public Syntex dependency
2016-06-09 11:23:43 -07:00
David Tolnay
898b346d48
1.5 does not have a stable libcore
2016-06-09 09:17:21 -07:00
David Tolnay
e90adb20ef
Run serde-syntex-example in Travis
2016-06-09 01:42:00 -07:00
David Tolnay
7afb8b52ae
Use rustup in serde-syntex-example instead of multirust
2016-06-09 01:16:31 -07:00
David Tolnay
cb4694387e
Fix nightly check in serde-syntex-example
2016-06-09 01:08:12 -07:00
David Tolnay
58fa302007
Release 0.7.8
2016-06-06 10:13:52 -07:00
David Tolnay
bdffaf3ea1
Re-enable clippy lint "useless_let_if_seq"
...
This reverts commit 4e6cd2d63f .
2016-06-05 13:01:22 -07:00
David Tolnay
f197c3ce96
Readme for "bound" attribute
2016-06-05 11:54:36 -07:00
David Tolnay
01dfad6705
Fix attributes canceling each other
2016-06-05 11:40:30 -07:00
David Tolnay
2e06786262
Remove unnecessary clones
2016-06-05 11:23:01 -07:00
David Tolnay
578f34ecaf
Use "bound" attribute instead of "where"
2016-06-05 11:17:43 -07:00
David Tolnay
2c8767cb46
Remove changelog in favor of github release notes
2016-06-05 10:05:56 -07:00
David Tolnay
45c51d3198
Fix build on 1.5.0 which does not have Vec::as_slice
2016-06-04 16:53:45 -07:00
David Tolnay
bd40830905
Do not generate bounds from recursive types
2016-06-04 16:12:01 -07:00
David Tolnay
4e6cd2d63f
Disable clippy lint "useless_let_if_seq"
2016-06-04 15:48:44 -07:00
David Tolnay
2256a04926
Address clippy lint "ptr_arg"
2016-06-04 15:48:44 -07:00
David Tolnay
660ea7bd7b
Attribute for handwritten where clauses
2016-06-04 15:48:42 -07:00
David Tolnay
ea182e2561
Merge pull request #335 from dtolnay/tuples
...
Support (de)serialize_with in tuples
2016-05-23 13:33:58 -07:00
David Tolnay
938f42faf6
Support (de)serialize_with in tuples
2016-05-19 10:53:38 -07:00
David Tolnay
f1b4072444
Strip more references
2016-05-18 23:48:56 -07:00
David Tolnay
7d2423e856
Reduce code duplication in Deserialize generator
...
This combines deserialize_newtype_struct, deserialize_tuple_struct,
and deserialize_tuple_variant into a single method deserialize_tuple,
as well as deserialize_struct and deserialize_struct_variant into a
single method deserialize_struct. No behavior changes.
2016-05-15 13:32:54 -07:00
David Tolnay
9865ec23c7
Merge pull request #322 from dtolnay/unused
...
Remove unused imports and needless borrows
2016-05-13 11:23:15 -07:00
David Tolnay
76a321db5c
Simplify redundant closure
2016-05-13 10:53:03 -07:00
David Tolnay
004dcaec3b
Remove unused imports and needless borrows
2016-05-13 10:47:09 -07:00
David Tolnay
3ad276944a
Do not depend on multiple syntex versions
2016-05-11 09:52:28 -07:00
David Tolnay
bb20796e9d
Bump version numbers in serde-syntex-example
2016-05-11 09:46:16 -07:00
David Tolnay
709ac64dfc
Release 0.7.5
2016-05-11 09:36:30 -07:00
David Tolnay
eeb4efc19c
feat(codegen): Detect repeated struct field when deserializing
2016-05-10 09:52:51 -07:00
David Tolnay
76b70455ec
Field with deserialize_with should not implement Deserialize
2016-05-10 09:50:32 -07:00
David Tolnay
f43c8a6267
Prefix type parameters and lifetimes with double underscore
2016-05-10 09:12:38 -07:00
David Tolnay
efdbf5795f
Fix version in serde/Cargo.toml
2016-05-08 20:43:46 -07:00
David Tolnay
55355b6680
Revert "Enable use in no_std environments"
...
This reverts commit 9c0140968d .
2016-05-08 20:30:21 -07:00
David Tolnay
3caac4e6f3
Clarify serialize_with and deserialize_with documentation
2016-05-08 10:52:23 -07:00
David Tolnay
f4414bfc14
Reduce dependence on type inference
2016-05-07 15:25:13 -07:00
David Tolnay
305fab7c16
fix(codegen): Support extern crate serde not in toplevel module
2016-04-25 09:58:01 -07:00
David Tolnay
fd3c15fb68
fix(codegen): Discard type defaults from impl generics
2016-04-19 10:28:43 -07:00
David Tolnay
93a7568ff6
Fix documentation of skip_serializing_if
2016-04-17 21:31:18 -07:00
David Tolnay
0439bb9d02
Deserialize impl for Box<[T]>
2016-04-17 20:59:26 -07:00
David Tolnay
886670134a
feat(codegen): Infer Default and Deserialize bounds correctly
2016-04-13 21:56:12 -07:00
David Tolnay
ff02b0c741
fix(codegen): Take into account default=... when skip_deserializing
2016-04-12 23:42:24 -07:00
David Tolnay
87393b61bb
feat(codegen) skip_deserializing
2016-04-10 20:29:37 -07:00
David Tolnay
a8509a1d03
Add missing close brackets in readme
2016-04-01 09:55:54 -07:00
David Tolnay
fb18a5cc56
Fix broken documentation links in Cargo.toml
2016-03-06 19:28:26 -08:00
David Tolnay
b01fc032fd
Missing quotes in upgrading-from-0.6 section of readme
2016-03-06 18:26:38 -08:00
David Tolnay
eaff73a541
Where clause for generic types only
2016-02-29 21:53:58 -08:00
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
David Tolnay
a0eb235f0a
YAML serde based on yaml-rust
2016-02-24 00:22:48 -08:00