Oliver Schneider
7374ac499d
Merge pull request #311 from dtolnay/deserialize_with
...
Field with deserialize_with should not implement Deserialize
2016-05-11 11:48:19 +02:00
Oliver Schneider
6596f77e91
Merge pull request #315 from dtolnay/underscore
...
Prefix type parameters and lifetimes with double underscore
2016-05-11 11:06:25 +02: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
Corey Richardson
ae806af644
Enable use in no_std environments
...
These changes are fairly invasive to imports and uses of non-libcore types,
but allow for some or none of the freestanding crates (core, rustc_unicode,
alloc, collections) to be supported by serde.
2016-05-10 10:23:41 +10:00
Homu
7aa0b6ce27
Auto merge of #314 - dtolnay:revert, r=erickt
...
Revert "Enable use in no_std environments"
This commit failed to build even before it was merged. See #313 .
2016-05-09 12:47:09 +09: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
Erick Tryzelaar
f8a91e5176
Merge pull request #302 from cmr/no_std
...
Enable use in no_std environments
2016-05-08 19:24:48 -07:00
Erick Tryzelaar
aa0cd9b3dc
Merge pull request #308 from dtolnay/inference
...
Reduce dependence on type inference
2016-05-08 19:21:45 -07:00
Erick Tryzelaar
1f82cd6e3d
Merge pull request #310 from dtolnay/withdoc
...
Clarify serialize_with and deserialize_with documentation
2016-05-08 19:20:12 -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
Erick Tryzelaar
8378267b9b
Merge pull request #303 from antrik/rustup
...
Update for latest libsyntax changes
2016-05-03 22:07:38 -07:00
Corey Richardson
9c0140968d
Enable use in no_std environments
...
These changes are fairly invasive to imports and uses of non-libcore types,
but allow for some or none of the freestanding crates (core, rustc_unicode,
alloc, collections) to be supported by serde.
2016-05-04 01:26:43 +10:00
Erick Tryzelaar
5716e8c508
Merge pull request #298 from dtolnay/scope
...
fix(codegen): Support `extern crate serde` not in toplevel module
2016-05-02 20:09:04 -07:00
Olaf Buddenhagen
0e9d45da60
Bump version to 0.7.4
...
Dependencies were updated in previous commit. (For supporting current
Nightly Rust.)
I guess this shouldn't affect our client interface -- which is why these
dependency bumps only get patch level version number updates for Serde,
I presume?
2016-05-02 07:26:16 +02:00
Olaf Buddenhagen
6e7a75c859
Adapt for parser::PathParsingMode
interface change in libsyntax
...
This was renamed upstream in
6c44bea644
It's an incompatible change requiring new versions of syntex, aster, and
quasi.
2016-05-02 07:25:29 +02:00
Olaf Buddenhagen
0ff91e4451
Adapt for removal of old interfaces in libsyntax
...
9108fb7bae
dropped the `map()` method (among other things) -- so we need to adapt
our code.
This change should be backwards-compatible.
2016-05-02 07:08:43 +02:00
David Tolnay
305fab7c16
fix(codegen): Support extern crate serde
not in toplevel module
2016-04-25 09:58:01 -07:00
Erick Tryzelaar
a959073a81
Merge pull request #296 from erickt/master
...
Fix a warning, bump the versions
2016-04-25 07:58:23 -07:00
Erick Tryzelaar
2f0fc6e6f1
Merge pull request #295 from dtolnay/defaults
...
fix(codegen): Discard type defaults from impl generics
2016-04-25 07:58:03 -07:00
Erick Tryzelaar
7bd87feb62
Fix a warning, bump the versions
2016-04-19 12:43:57 -05:00
Erick Tryzelaar
bff2301ac3
Document that skip_deserializing uses the default=...
attribute if present
2016-04-19 12:35:16 -05:00
David Tolnay
fd3c15fb68
fix(codegen): Discard type defaults from impl generics
2016-04-19 10:28:43 -07:00
Erick Tryzelaar
808b06940e
Merge pull request #285 from dtolnay/bounds
...
feat(codegen): Infer Default and Deserialize bounds correctly
2016-04-19 12:25:13 -05:00
Erick Tryzelaar
8cce6ecf15
Merge pull request #290 from dtolnay/boxslice
...
fix(impls): Deserialize impl for Box<[T]>
2016-04-19 12:21:11 -05:00
Erick Tryzelaar
ef97f87b96
Merge pull request #291 from dtolnay/docskip
...
Fix documentation of skip_serializing_if
2016-04-19 12:20:45 -05: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
Erick Tryzelaar
65e36647f5
Merge pull request #283 from dtolnay/defaultskip
...
fix(codegen): Take into account default=... when skip_deserializing
2016-04-13 08:43:10 -07:00
Erick Tryzelaar
51fdb0e4ef
Merge pull request #284 from erickt/master
...
Fix doc links
2016-04-13 08:41:52 -07:00
Erick Tryzelaar
a4de662adb
Fix doc links
2016-04-13 08:11:02 -07:00
David Tolnay
ff02b0c741
fix(codegen): Take into account default=... when skip_deserializing
2016-04-12 23:42:24 -07:00
Erick Tryzelaar
6b3958d5fc
Merge pull request #282 from erickt/doc
...
Fix generating serde_{codegen,macros} documentation
2016-04-12 17:08:15 -07:00
Erick Tryzelaar
84b289dd7b
1.5 is unhappy that this private module is undocumented
2016-04-12 09:24:32 -07:00
Erick Tryzelaar
dbba537b66
Merge branch 'skip_deserializing' of https://github.com/dtolnay/serde into dtolnay-skip_deserializing
2016-04-12 08:52:25 -07:00
Erick Tryzelaar
bc2324fba7
Merge branch 'feature/inhibit' of https://github.com/dtolnay/serde into dtolnay-feature/inhibit
2016-04-12 08:41:02 -07:00
Erick Tryzelaar
9082b75e75
Fix generating serde_{codegen,macros} documentation
2016-04-12 08:36:02 -07:00
Erick Tryzelaar
4b9f751d74
Merge pull request #264 from dtolnay/docs/links
...
Fix broken documentation links in Cargo.toml
2016-04-12 08:32:14 -07:00
Erick Tryzelaar
451700d3d2
Add more tests for renaming missing field
2016-04-12 08:26:56 -07:00
Erick Tryzelaar
1c5d83889c
Merge remote-tracking branch 'remotes/origin/master' into renamed_missing_field
2016-04-12 08:24:34 -07:00
Oliver Schneider
f659fa8919
add a test
2016-04-12 12:42:07 +02:00
David Tolnay
87393b61bb
feat(codegen) skip_deserializing
2016-04-10 20:29:37 -07:00
Erick Tryzelaar
a84b6aaedd
Bump syntex/aster/quasi version
2016-04-10 19:54:54 -07:00
Erick Tryzelaar
ac98a25291
Merge pull request #275 from dtolnay/brackets
...
Add missing close brackets in readme
2016-04-06 07:20:41 -07:00
Erick Tryzelaar
48dd47b2b7
Merge pull request #279 from jwilm/fix-deserialize-with-result
...
Fix `deserialize_with` in module with Result alias
2016-04-05 19:25:48 -07:00
Joe Wilm
4af850431c
Fix deserialize_with
in module with Result alias
...
Result<T, E> aliases usually provide one or both of `T` and `E`. This
would cause an error when using deserialize_with:
error: wrong number of type arguments: expected 1, found 2
which unhelpfully just pointed to `#[derive(Deserialize)]`
2016-04-05 15:53:51 -07:00