David Tolnay
9bb196ae6e
Work around failing to parse manifest in 1.27 and 1.28 builds
2019-07-28 10:07:15 -07:00
David Tolnay
ce75418e40
Merge pull request #1589 from Flaise/nonzeroi
...
Add support for NonZeroI* types
2019-07-28 10:02:09 -07:00
David Tolnay
e7269ac84e
Add travis builds on every version in build.rs
2019-07-28 08:36:06 -07:00
David Tolnay
3ae2bee272
Release 1.0.97
2019-07-17 14:56:51 -07:00
David Tolnay
d0fb958e99
Remove unneeded explicit type parameters in test_from_into_traits
2019-07-17 12:32:34 -07:00
David Tolnay
b941c63a53
More typical TryFrom usage for test
2019-07-17 12:31:41 -07:00
David Tolnay
cf70c3fb05
Format with rustfmt 2019-06-09
2019-07-17 12:27:26 -07:00
David Tolnay
f249e72162
Provide try_from only on 1.34+
2019-07-17 12:21:18 -07:00
David Tolnay
92e0b62c6b
Merge pull request 1526 from fanzeyi/try_from
2019-07-17 12:16:31 -07:00
David Tolnay
cf32a5b204
Release 1.0.96
2019-07-17 12:04:19 -07:00
David Tolnay
7b0e06c825
Provide 32 bit atomic impls for emscripten
2019-07-17 11:44:24 -07:00
David Tolnay
3158bf9093
Merge pull request #1581 from Roguelazer/issue-1579
...
conservatively limit atomic features
2019-07-17 11:01:21 -07:00
David Tolnay
da05163d51
Release 1.0.95
2019-07-16 10:08:53 -07:00
David Tolnay
f3e2bb5104
Disable 64 bit atomic tests on emscripten
2019-07-16 10:00:44 -07:00
David Tolnay
7a4c1086b5
Emscripten does not have 64 bit atomics
2019-07-16 09:57:00 -07:00
David Tolnay
e89feb9635
Test atomics without needing a macro
...
As a secondary benefit, this avoids a congnitive_complexity lint from
Clippy.
2019-07-16 09:17:36 -07:00
David Tolnay
5f72766c27
Ignore unreadable_literal lint in test code
2019-07-16 09:04:43 -07:00
David Tolnay
85ae57040d
One macro to deserialize all atomics
2019-07-16 07:46:44 -07:00
David Tolnay
d55a4a279f
Deserialize atomics without needing element type
2019-07-16 07:45:41 -07:00
David Tolnay
bee9299693
One macro to serialize all atomics
2019-07-16 07:42:42 -07:00
David Tolnay
9529fcec96
Serialize atomics using the primitive's Serialize impl
2019-07-16 07:40:37 -07:00
David Tolnay
bcec168e23
Centralize atomic imports
2019-07-16 07:36:16 -07:00
David Tolnay
102a332616
Format with rustfmt 2019-06-09
2019-07-16 07:32:13 -07:00
David Tolnay
a280942f02
Add a builder on 1.34 to cover atomic types
2019-07-16 07:29:10 -07:00
David Tolnay
637dba5c2a
Merge pull request #1572 from Roguelazer/issue-1496
...
Implement serialization and deserialization for std::sync::atomic types
2019-07-16 07:28:18 -07:00
David Tolnay
24f292d081
Build alloc feature on 1.36 in travis
2019-07-16 07:22:47 -07:00
David Tolnay
fa5c99e48a
Alloc crate is no longer unstable
2019-07-16 07:21:09 -07:00
David Tolnay
48f1a2c9b2
Merge pull request #1576 from c410-f3r/alloc-feature
...
Make `alloc` feature work on stable
2019-07-16 07:19:49 -07:00
David Tolnay
ce89adecc1
Suppress deprecation warning on mem::uninitialized
2019-07-07 21:19:50 -07:00
David Tolnay
bc7a85063d
Switch to rustversion
2019-07-07 21:14:11 -07:00
David Tolnay
0574f1e020
Merge pull request #1561 from BurntSushi/ag/update-i128-docs
...
Update docs for serde_if_integer128
2019-07-01 15:04:54 -07:00
David Tolnay
1c1eecabc0
Release 1.0.94
2019-06-27 10:55:12 -07:00
David Tolnay
abd3fd004e
Merge pull request #1559 from dtolnay/ignore-enum
...
Accept enums in IgnoredAny
2019-06-27 10:54:22 -07:00
David Tolnay
15ee353488
IgnoredAny::visit_enum for old compilers
2019-06-27 10:45:18 -07:00
David Tolnay
e75efbfd31
Support ignoring enum with IgnoredAny
2019-06-27 10:29:55 -07:00
David Tolnay
1c97a7ecb3
Add comprehensive test for deserializing IgnoredAny from enum
2019-06-27 10:23:39 -07:00
David Tolnay
fccd3e9fba
Add deserialization tests for IgnoredAny
2019-06-27 10:07:06 -07:00
David Tolnay
4cb13b33e0
Release 1.0.93
2019-06-23 12:50:17 -07:00
David Tolnay
629802f2ab
Merge pull request #1555 from serde-rs/int
...
Allow integer key in untagged flattened map
2019-06-23 12:49:21 -07:00
David Tolnay
afb1754528
Allow integer key in untagged flattened map
2019-06-23 12:09:15 -07:00
David Tolnay
dbd67c6c89
Clippy const_static_lifetime lint has been renamed
2019-06-19 01:34:13 -07:00
David Tolnay
ed01bdb9dd
Remove fixed cast_precision_loss lint
2019-06-15 10:13:05 -07:00
David Tolnay
b54821d8ab
Alloc feature has been stabilized
...
warning: the feature `alloc` has been stable since 1.36.0 and no longer requires an attribute to enable
--> serde/src/lib.rs:84:40
|
84 | #![cfg_attr(feature = "alloc", feature(alloc))]
| ^^^^^
|
= note: #[warn(stable_features)] on by default
2019-05-31 21:26:43 -07:00
David Tolnay
89c6a79b6e
Suppress a new pedantic lint
2019-05-31 21:25:36 -07:00
David Tolnay
cd0412bddc
Release 1.0.92
2019-05-31 13:44:01 -07:00
David Tolnay
e42262f0f5
Provide ToString for re-export by serde::export
2019-05-31 13:42:22 -07:00
David Tolnay
0a3eeab273
Merge pull request #1543 from jplatte/alloc-de-compile-fix
...
Fix a compile error in derive(Deserialize) with no_std + alloc
2019-05-31 13:41:07 -07:00
David Tolnay
0726623389
Ignore bare_trait_objects lint to support old compilers
2019-05-31 11:34:18 -07:00
David Tolnay
fd9d334d01
Smaller format for license section
2019-05-18 17:35:47 -07:00
David Tolnay
840eb14121
Merge pull request #1528 from est31/no_variable_names
...
Don't use variable names
2019-05-17 08:57:14 -07:00
David Tolnay
9c756f1ec0
Disable ui tests on emscripten
...
These hit a strange error in our Emscripten builder in Travis as well as
locally through cargo web:
ERROR: failed to execute cargo: Resource temporarily unavailable (os error 11)
2019-05-12 00:28:22 -07:00
David Tolnay
6dd2b4607f
Switch to SPDX 2.1 license expression
2019-05-09 15:21:20 -07:00
David Tolnay
1e9ae88f53
Work around "failed to select a version for serde_test_suite"
...
Without this:
error: failed to select a version for `serde_test_suite`.
... required by package `serde_test_suite-tests v0.0.0`
versions that meet the requirements `= 0.0.0` are: 0.0.0
the package `serde_test_suite-tests` depends on `serde_test_suite`, with features: `serde` but `serde_test_suite` does not have these features.
failed to select a version for `serde_test_suite` which could resolve this conflict
Seems like a Cargo bug -- I will minimize and report.
2019-05-06 22:53:38 -07:00
David Tolnay
5cc3902ab9
Release 1.0.91
2019-05-06 16:27:04 -07:00
David Tolnay
c8e09e2d6d
Merge pull request #1522 from dtolnay/enum
...
Support deserializing enum out of MapAccessDeserializer
2019-05-06 16:26:43 -07:00
David Tolnay
e2a2ba116c
Remove old instructions intended for compiletest
2019-05-06 16:17:30 -07:00
David Tolnay
0a9d24a218
Support deserializing enum out of MapAccessDeserializer
2019-05-06 16:11:28 -07:00
David Tolnay
c222183669
Merge pull request #1521 from serde-rs/trybuild
...
Switch ui tests to trybuild
2019-05-06 10:44:25 -07:00
David Tolnay
140f9beee7
Switch ui tests to trybuild
2019-05-06 10:25:47 -07:00
David Tolnay
28ce892617
Disable compiletest in appveyor
...
error[E0464]: multiple matching crates for `serde`
--> $DIR/wrong_getter.rs:15:10
|
15 | #[derive(Serialize)]
| ^^^^^^^^^
|
= note: candidates:
crate `serde`: /?/C:/projects/serde/test_suite/deps/target/debug/deps/libserde-a1a28acc73b0edde.rlib
crate `serde`: /?/C:/Users/appveyor/.
2019-04-22 23:18:21 -07:00
David Tolnay
1e6d3ff99b
Merge pull request #1512 from dtolnay/off
...
Temporarily disable compiletest testing in CI
2019-04-22 23:05:54 -07:00
David Tolnay
fba1b92cbf
Temporarily disable compiletest testing in CI
...
The nightly compiler just added a dependency on serde so libserde ends
up in the sysroot, breaking crate resolution inside of compiletest. We
will need to figure out how else to run these tests.
error[E0464]: multiple matching crates for `serde`
--> $DIR/wrong_ser.rs:9:10
|
9 | #[derive(Serialize)]
| ^^^^^^^^^
|
= note: candidates:
crate `serde`: /rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libserde-2b75907288aa7c40.rlib
crate `serde`: /serde/test_suite/deps/target/debug/deps/libserde-33e0a319242344ce.rlib
2019-04-22 22:42:36 -07:00
David Tolnay
ce1686379d
Update test suite to nightly-2019-04-20
2019-04-19 22:54:59 -07:00
David Tolnay
79a20e9e33
Resolve option_map_unwrap_or_else lint
2019-04-10 22:57:47 -07:00
David Tolnay
e9cd73f78e
Remove link to hjson
...
This project has still not been updated to Serde 1.0.
2019-04-08 10:39:55 -07:00
David Tolnay
0be7f36d51
Release 1.0.90
2019-04-03 09:41:38 -07:00
David Tolnay
4c6cb6e359
Match on serde_path to handle Some(path) and None
...
I find this a bit easier to follow than map + unwrap_or_else.
2019-04-03 09:40:25 -07:00
David Tolnay
82bde8d166
Format with rustfmt 2019-03-27
2019-04-03 09:40:12 -07:00
David Tolnay
465392b618
Merge pull request #1499 from sgrif/sg-custom-serde-path
...
Allow `#[serde(crate = "...")]` to override `extern crate serde`
2019-04-03 09:32:07 -07:00
David Tolnay
f3c6b9f05a
Simplify signature of Container::serde_path
2019-04-03 09:18:45 -07:00
David Tolnay
2f1945eaf2
Refer directly to serde_path in Deserialize impl
...
This makes it not a breaking change if we later want to eliminate
the `use #serde_path as _serde;` line.
2019-04-03 09:16:21 -07:00
David Tolnay
295730ba1e
Clippy cyclomatic complexity lint has been renamed
2019-03-09 16:36:51 -08:00
David Tolnay
ac0d8f61c5
Use non-preview name of Clippy rustup component
2019-03-01 23:11:06 -08:00
David Tolnay
b811588fa0
Release 1.0.89
2019-02-28 17:09:10 -08:00
David Tolnay
5fcdf0ff2b
Sort version-conditional imports at the bottom
2019-02-28 16:53:13 -08:00
David Tolnay
650b723da3
Format with rustfmt 2019-02-14
2019-02-28 16:40:54 -08:00
David Tolnay
97920be33a
Merge pull request #1486 from vorot93/reverse
...
impl Serialize and Deserialize for core::cmp::Reverse
2019-02-28 16:39:54 -08:00
David Tolnay
58bbaa9e80
Refer to Option through serde::export in generated code
2019-02-28 16:36:17 -08:00
David Tolnay
94f152730c
Merge pull request #1492 from thomaseizinger/1491-clippy-warning
...
Don't generate code with redundant closures
2019-02-28 16:35:59 -08:00
David Tolnay
535e3d4372
Mention rc feature in list of trait impls in documentation
2019-02-28 01:13:36 -08:00
David Tolnay
bf27b28554
Simplify running update-references.sh
2019-02-17 10:58:46 -08:00
David Tolnay
344602d27e
Make array ser impls macro better fit rustfmt style
2019-02-16 15:22:53 -08:00
David Tolnay
64c483cf80
Release 1.0.88
2019-02-15 19:55:50 -08:00
David Tolnay
19091aacc7
Fix mistaken double negative in flatten error message
2019-02-15 18:56:31 -08:00
David Tolnay
ef9028d798
Remove conflict between flatten and skip
2019-02-15 18:39:15 -08:00
David Tolnay
1668cd19d3
Eliminate try!(..).value to improve rustfmt'd code
...
Rustfmt bails out on the original code, leaving it all on one line.
2019-02-13 09:13:50 -08:00
David Tolnay
134f268cee
Release 1.0.87
2019-02-04 07:08:41 +01:00
David Tolnay
c473633676
Format with rustfmt 2018-12-10
2019-02-04 00:39:32 +01:00
David Tolnay
6a3a82007c
Merge pull request #1474 from jwillbold/master
...
Fixed #1468 , flattened struct fields made structs ignore their tag
2019-02-03 15:37:44 -08:00
David Tolnay
c8e3959435
Release 1.0.86
2019-02-01 21:07:19 -08:00
David Tolnay
796f412a1e
Document that Bound<T> impls exist
2019-02-01 21:07:18 -08:00
David Tolnay
fa854a2108
Format with rustfmt 2018-12-10
2019-02-01 21:04:08 -08:00
David Tolnay
3a097ff2d2
Deserialize Bound::Unbounded as unit variant
2019-02-01 21:04:07 -08:00
David Tolnay
8463bfc1e5
Remove as yet unrequested range impls
2019-02-01 21:04:06 -08:00
David Tolnay
7a72b4c624
Merge pull request #1466 from 0nkery/master
...
Impl Serialize/Deserialize for std::ops::{Bound, RangeFrom, RangeTo, RangeToInclusive}
2019-02-01 21:03:55 -08:00
David Tolnay
670c179417
Re-enable deny unused_imports
2019-02-01 17:56:52 -08:00
David Tolnay
1b1d868837
Combine the two clippy lists
2019-02-01 17:56:31 -08:00
David Tolnay
d9704d02bb
Remove clippy lints that are no longer triggering
2019-02-01 17:53:14 -08:00
David Tolnay
1349548367
Fix indentation of cfg that isn't formatted by rustfmt
2019-02-01 17:48:14 -08:00
David Tolnay
bb99b31eb0
Release 1.0.85
2019-01-18 22:36:49 -08:00