David Tolnay
9e140a2071
Tweak yaml format blurb
2020-07-05 20:00:33 -07:00
David Tolnay
24e6acbfae
Drop 'help or discussion' issue template
...
Per https://github.com/serde-rs/serde#getting-help we're steering these
to Discord / Stack Overflow / Reddit / etc.
Can reconsider when GitHub Discussions is out of beta
(https://github.com/vercel/next.js/discussions ).
2020-07-04 20:44:22 -07:00
David Tolnay
29c5a50935
Suppress unused_attributes warning in test suite
...
This test has multiple #[ignore] attributes in some configurations.
$ cargo +beta check --test expandtest
warning: unused attribute
--> test_suite/tests/expandtest.rs:2:29
|
2 | #[cfg_attr(not(expandtest), ignore)]
| ^^^^^^
|
= note: `#[warn(unused_attributes)]` on by default
2020-06-26 21:37:30 -07:00
David Tolnay
c619b2a7c4
Suppress unknown_lints warning in test suite
...
When building with beta and older rustc:
error: unknown lint: `mixed_script_confusables`
--> test_suite/tests/test_gen.rs:7:10
|
7 | #![allow(mixed_script_confusables, clippy::trivially_copy_pass_by_ref)]
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(unknown_lints)]` implied by `#[deny(warnings)]`
2020-06-26 21:37:26 -07:00
David Tolnay
764ebd9b17
Suppress mixed_script_confusables in test suite
...
error: The usage of Script Group `Greek` in this crate consists solely of mixed script confusables
--> test_suite/tests/test_gen.rs:269:9
|
269 | σ: f64,
| ^
|
note: the lint level is defined here
--> test_suite/tests/test_gen.rs:5:9
|
5 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(mixed_script_confusables)]` implied by `#[deny(warnings)]`
= note: The usage includes 'σ' (U+03C3).
= note: Please recheck to make sure their usages are indeed what you want.
2020-06-26 19:06:13 -07:00
Tim Hutt
010444dfa4
Allow floats to be deserialized from ints in tagged unions
2020-06-22 16:31:13 +01:00
David Tolnay
9c6f0c3a0e
Release 1.0.114
2020-06-21 17:31:02 -07:00
David Tolnay
a9f8ea0a1e
Simplify search for packed repr attr
2020-06-21 17:22:07 -07:00
David Tolnay
04faac962a
Remove error_on_line_overflow rustfmt setting
...
No longer seeing warnings on this from rustfmt.
2020-06-21 16:48:22 -07:00
Tanner Rogalsky
7e5701ad2b
add alignment specific packed repr tests
2020-06-21 16:46:27 -07:00
Tanner Rogalsky
1cd10a7d09
Improved packed repr matching.
2020-06-21 16:46:27 -07:00
Tanner Rogalsky
d5e6436b28
Add tests validating Serialize derivation for packed structs.
2020-06-21 16:46:27 -07:00
David Tolnay
8ff11dc234
Merge pull request #1841 from dtolnay/lenhint
...
Remove len hint specialization
2020-06-20 19:08:34 -07:00
David Tolnay
6b3777b617
Remove len hint specialization
2020-06-20 19:02:26 -07:00
David Tolnay
7350b58f5c
Release 1.0.113
2020-06-19 13:31:38 -07:00
David Tolnay
7351e0e55a
Link to feature announcements where available
2020-06-19 13:30:14 -07:00
David Tolnay
b3ff7e43ef
Merge pull request #1827 from taiki-e/underscore_consts
...
Use underscore consts on Rust 1.37+
2020-06-19 13:27:33 -07:00
Taiki Endo
a50e1c20e9
Use underscore consts on Rust 1.37+
2020-06-19 15:55:43 +09:00
David Tolnay
6980727d74
Merge pull request #1840 from rw/patch-1
...
Add FlexBuffers to serde ecosystem list
2020-06-18 22:57:59 -07:00
Robert Winslow
bb1dedf04d
Add FlexBuffers to serde ecosystem list
...
Add FlexBuffers to serde ecosystem list
2020-06-16 13:36:14 -07:00
David Tolnay
f3520e526b
Release 1.0.112
2020-06-14 11:16:04 -07:00
David Tolnay
e8fd2c85c3
Merge pull request #1839 from dtolnay/entry
...
Forward serialize_entry on flattened maps
2020-06-14 11:15:26 -07:00
David Tolnay
97962d51e2
Forward serialize_entry on flattened maps
2020-06-14 11:10:18 -07:00
David Tolnay
95b1a5d3d9
Ignore unnested_or_patterns suggesting unstable code
...
Clippy bug: https://github.com/rust-lang/rust-clippy/issues/5704
2020-06-10 19:41:16 -07:00
David Tolnay
0856a2c101
No need to specify Cargo.toml in package.include
...
Cargo.toml is always included in the published crate.
2020-06-10 01:21:19 -07:00
David Tolnay
9f331cc257
Release 1.0.111
2020-05-29 18:53:07 -07:00
David Tolnay
ef16c815f6
Merge pull request #1821 from dtolnay/ungroup
...
Look inside of None-delimited groups when examining types
2020-05-29 18:11:14 -07:00
David Tolnay
c45a809d5c
Look inside of None-delimited groups when examining types
2020-05-29 17:58:34 -07:00
David Tolnay
f7d06cae4c
Add failing test involving macro_rules metavariable
2020-05-29 17:58:10 -07:00
David Tolnay
31fe82a215
Resolve match_wildcard_for_single_variants pedantic lint
2020-05-29 17:46:40 -07:00
David Tolnay
ef6ed1d1be
Copy some new links from serde.rs to the crate-level doc
2020-05-22 12:49:15 -07:00
David Tolnay
9d1251548b
Mirror 'Getting help' from github readme to crates.io readme
2020-05-15 23:09:48 -07:00
David Tolnay
c20730ee39
Remove reference to mozilla irc
2020-05-15 23:07:35 -07:00
David Tolnay
afd51ef0f4
Merge pull request #1808 from dtolnay/help
...
Update 'Getting help' section
2020-05-09 23:38:40 -07:00
David Tolnay
3167f98689
Update 'Getting help' section
2020-05-09 23:34:38 -07:00
David Tolnay
078b171c1b
Release 1.0.110
2020-05-09 23:06:56 -07:00
David Tolnay
da8d6f678e
Simplify finding of repr(packed) attributes
2020-05-09 23:02:49 -07:00
David Tolnay
548eb8f667
Format PR 1791 with rustfmt
2020-05-09 22:54:42 -07:00
David Tolnay
1fe39043ee
Simplify access of packed struct fields in derived Serialize impls
2020-05-09 22:53:38 -07:00
David Tolnay
c2114491ca
Add test of Serialize impl for packed struct
2020-05-09 22:52:49 -07:00
alvardes
9f47c47cad
Add support for packed structs.
2020-05-09 22:45:44 -07:00
David Tolnay
d6b39fd2c1
Merge pull request #1807 from dtolnay/31
...
Add a CI builder on 1.31.0
2020-05-09 22:44:41 -07:00
David Tolnay
4d6d0ae539
Add a CI builder on 1.31.0
2020-05-09 22:38:26 -07:00
David Tolnay
dda070f45c
Fix borrow error on pre-NLL compilers
...
error[E0506]: cannot assign to `missing_content` because it is borrowed
--> serde_derive/src/de.rs:1414:9
|
1388 | .filter_map(|(i, variant)| {
| -------------- borrow of `missing_content` occurs here
...
1414 | / missing_content = quote! {
1415 | | match __field {
1416 | | #(#missing_content_arms)*
1417 | | #missing_content_fallthrough
1418 | | }
1419 | | };
| |_________^ assignment to borrowed `missing_content` occurs here
error[E0502]: cannot borrow `missing_content_fallthrough` as immutable because it is also borrowed as mutable
--> serde_derive/src/de.rs:1414:27
|
1388 | .filter_map(|(i, variant)| {
| -------------- mutable borrow occurs here
...
1404 | missing_content_fallthrough = quote!(_ => #missing_content);
| --------------------------- previous borrow occurs due to use of `missing_content_fallthrough` in closure
...
1414 | missing_content = quote! {
| ___________________________^
1415 | | match __field {
1416 | | #(#missing_content_arms)*
1417 | | #missing_content_fallthrough
1418 | | }
1419 | | };
| |_________^ immutable borrow occurs here
...
1622 | }
| - mutable borrow ends here
|
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
2020-05-09 22:37:31 -07:00
David Tolnay
b97a183e82
Release 1.0.109
2020-05-09 21:00:51 -07:00
David Tolnay
9433004307
Omit missing content match if not needed
2020-05-09 20:59:01 -07:00
David Tolnay
9476838264
Omit missing content fallthrough arm if not needed
2020-05-09 20:59:00 -07:00
asdsad
172edc4cf4
Allow optional content field for adjacently tagged newtype variants
...
* Deserialize adjacently tagged newtype variants with optional content as None instead of erroring when content field is missing
* refactor to remove duplicate code and remove panic
2020-05-09 20:58:28 -07:00
David Tolnay
3c97e1b9a9
Format PR 1702 with rustfmt
2020-05-09 18:24:05 -07:00
ppc
a81968af3c
Turn panic to error in SystemTime serialization
2020-05-09 18:22:29 -07:00