David Tolnay
dee58ead7f
Merge pull request #841 from serde-rs/nostr
...
Remove the no_std implementation of collect_str
2017-04-05 08:12:31 -07:00
David Tolnay
887985523e
Merge pull request #840 from serde-rs/privimpl
...
Make the built-in visitors private
2017-04-05 08:12:00 -07:00
David Tolnay
cabc299447
Merge pull request #839 from serde-rs/conv
...
Remove questionable type conversions
2017-04-05 08:11:50 -07:00
David Tolnay
21adee8f40
Partial support for EnumStart in assert_ser_tokens
2017-04-05 01:15:42 -07:00
David Tolnay
afaab12b66
Improve assert_ser_tokens error messages
2017-04-05 01:06:42 -07:00
David Tolnay
93860d0643
Require slice of tokens in serde_test::Serializer
2017-04-05 00:27:30 -07:00
David Tolnay
b43554fbb1
Require slice of tokens in serde_test::Deserializer
2017-04-05 00:22:00 -07:00
David Tolnay
5871fb9ce0
Remove lifetime from serde_test::Token
2017-04-05 00:17:50 -07:00
David Tolnay
f05368ed24
Remove the no_std implementation of collect_str
2017-04-04 19:10:35 -07:00
David Tolnay
732b91e53d
Make the built-in visitors private
2017-04-04 18:59:57 -07:00
David Tolnay
d03ecda333
Test that conversions do not happen
2017-04-04 18:50:40 -07:00
David Tolnay
7a722d5060
Remove questionable conversion tests
2017-04-04 18:38:58 -07:00
David Tolnay
2795f0ed9d
Remove questionable type conversions
2017-04-04 18:18:47 -07:00
David Tolnay
92bc23e484
Deserializing OsString on windows requires a 'de lifetime
2017-04-04 18:08:36 -07:00
David Tolnay
5a98bd9ee3
Merge branch 'master' into '1.0'
2017-04-04 18:04:40 -07:00
David Tolnay
bfabaf3789
Merge pull request #838 from serde-rs/winstr
...
Deserialize OsString on Windows
2017-04-04 11:33:42 -07:00
David Tolnay
cf6c4ab7ec
Deserialize OsString on Windows
2017-04-04 11:19:24 -07:00
David Tolnay
7c27e10226
Merge pull request #837 from serde-rs/borrow
...
Derive for borrowed fields
2017-04-04 10:51:56 -07:00
David Tolnay
20ff9ba89b
Add tests of deserializing borrows
2017-04-04 10:47:21 -07:00
David Tolnay
211e2bb8d9
Support borrowed tokens in serde_test
2017-04-04 09:56:01 -07:00
David Tolnay
cee3efbda8
Relax lifetime requirement of the borrow_cow functions
2017-04-03 00:54:50 -07:00
David Tolnay
fb48111e46
Derive for borrowed fields
2017-04-03 00:40:45 -07:00
David Tolnay
8c3e72f2c8
Merge pull request #834 from serde-rs/easy
...
Deserialize impls for &str and &[u8]
2017-03-31 00:44:44 -07:00
David Tolnay
aa46318425
Deserialize impls for &str and &[u8]
2017-03-30 23:36:20 -07:00
David Tolnay
3d3118f8b0
Merge pull request #826 from serde-rs/lifetime
...
Add a 'de lifetime to the deserialize traits
2017-03-30 23:11:49 -07:00
David Tolnay
b6f1a2eb55
Add a note about assuming the deserializer lifetime name
2017-03-30 23:06:00 -07:00
David Tolnay
8eb50186e0
Merge pull request #831 from serde-rs/derivepath
...
Use the live serde_derive for serde doc tests
2017-03-30 22:55:33 -07:00
David Tolnay
4dec5f4de8
Update example code for zero copy
2017-03-30 22:54:42 -07:00
David Tolnay
8e0c036158
Merge branch 'derivepath' into 'lifetime'
2017-03-30 22:48:48 -07:00
David Tolnay
7d985ff3fd
Use the live serde_derive for serde doc tests
...
This is required as both are updated to Deserialize<'de> together.
2017-03-30 22:45:15 -07:00
David Tolnay
d3a2f5e268
Add a 'de lifetime to the deserialize traits
2017-03-29 00:10:34 -07:00
David Tolnay
59b3961ad4
Release 0.9.12
2017-03-27 15:45:14 -07:00
David Tolnay
dbc9a60c5f
Merge pull request #824 from alexcrichton/osstr-osstring
...
Implement Serialize/Deserialize for OsStr/OsString
2017-03-27 15:39:07 -07:00
Alex Crichton
ce687431f3
Implement Serialize/Deserialize for OsStr/OsString
...
This commit implements the two serde traits for the libstd `OsStr` and
`OsString` types. This came up as a use case during implementing sccache where
we're basically just doing IPC to communicate paths around. Additionally the
`Path` and `PathBuf` implementations have been updated to delegate to the os
string ones.
These types are platform-specific, however, so the serialization/deserialization
isn't trivial. Currently this "fakes" a newtype variant for Unix/Windows to
prevent cross-platform serialization/deserialization. This means if you're doing
IPC within the same OS (e.g. Windows to Windows) then serialization should be
infallible. If you're doing IPC across platforms (e.g. Unix to Windows) then
using `OsString` is guaranteed to fail as bytes from one OS won't deserialize on
the other (even if they're unicode).
2017-03-27 11:44:50 -07:00
David Tolnay
71ccc5753b
Merge pull request #820 from serde-rs/reexport
...
Re-export derives from serde
2017-03-26 20:37:12 -07:00
David Tolnay
13886435a6
Re-export derives from serde
2017-03-21 16:54:31 -07:00
David Tolnay
08e2182042
UFCS for Option::map and Result::map
2017-03-18 13:31:03 -07:00
David Tolnay
d60595cc27
Use format_args! to simplify de::Error
2017-03-18 10:48:47 -07:00
David Tolnay
8c7396c35a
Be consistent with UFCS and double underscores
2017-03-18 10:33:22 -07:00
David Tolnay
42b2fd8eec
Improve error message parsing from and into
2017-03-18 09:22:44 -07:00
John Baublitz
bc946e4fd7
Macro attributes to specify From and Into trait types for structs and enums ( #817 )
...
* serde macro support for type conversions through From and Into trait
* Revisions requested by dtolnay
* Additional changes requested by dtolnay
2017-03-18 09:22:27 -07:00
David Tolnay
c488cec641
Remove RangeInclusive impl for now
...
The old impl is inconsistent with the new ops::Range impl.
2017-03-13 11:09:56 -07:00
David Tolnay
fcc3c69a49
Range impl is defined when building with std
2017-03-09 12:04:02 -08:00
David Tolnay
350c2e835b
Remove duplicate ops::Range serialize impl
2017-03-09 11:57:36 -08:00
David Tolnay
a0a031677e
Merge pull request #813 from rocallahan/support-range
...
Implement `Serialize`/`Deserialize` for `Range`
2017-03-09 11:55:21 -08:00
Robert O'Callahan
cc0d045f5c
Add Deserialize impl for std::ops::Range
...
Resolves #796
2017-03-10 08:39:34 +13:00
Robert O'Callahan
aebe1fddab
Add Serialize impl for std::ops::Range
2017-03-10 00:35:04 +13:00
David Tolnay
77ee306b57
Format serde with rustfmt 0.8.0
2017-03-08 21:11:17 -08:00
David Tolnay
6750fdaae1
Merge pull request #811 from jonhoo/deserialize-cstr
...
Add Deserialize impl for CStr
2017-03-08 21:06:09 -08:00
David Tolnay
dd6989d551
Actually run unstable tests
2017-03-08 21:02:15 -08:00