David Tolnay
d2fcc346b9
Ensure f32 deserialized from f64 and vice versa preserve NaN sign
2023-10-25 19:45:53 -07:00
David Tolnay
bb4135cae8
Fix unused imports
...
warning: unused imports: `cmp`, `mem`, `slice`
--> serde/src/lib.rs:171:26
|
171 | pub use self::core::{cmp, iter, mem, num, ptr, slice, str};
| ^^^ ^^^ ^^^^^
|
= note: `#[warn(unused_imports)]` on by default
2023-10-24 22:32:42 -07:00
David Tolnay
9cdf332029
Remove 'remember to update' reminder from Cargo.toml
2023-10-17 21:05:31 -07:00
David Tolnay
e94fc65f01
Release 1.0.189
2023-10-12 19:20:43 -07:00
João Marcos P. Bezerra
1cbea892cf
Add CSV to the formats list
2023-10-09 22:59:56 -03:00
David Tolnay
dad15b9fd0
Release 1.0.188
2023-08-25 19:16:10 -07:00
David Tolnay
146dc0fad5
Release 1.0.187
2023-08-25 10:53:36 -07:00
David Tolnay
dc24d12ce0
Clean up all usage of serde_if_integer128
2023-08-23 22:14:23 -07:00
David Tolnay
4e7533e872
Remove support for emscripten targets on rustc older than 1.40
2023-08-23 22:07:21 -07:00
David Tolnay
5d036515ed
Release 1.0.186
2023-08-23 17:08:06 -07:00
David Tolnay
f8d0b26d2f
Remove custom encode_utf8 implementation in favor of standard one
2023-08-23 17:01:58 -07:00
David Tolnay
0d8ebac7e1
Duplicate the serde_derive dependency version in one fewer place
2023-08-23 16:29:29 -07:00
David Tolnay
919f6be887
Reword PR 2588 comment
2023-08-23 16:24:14 -07:00
David Tolnay
c0f70428ba
Merge pull request 2588 from soqb:use-impossible-cfg-to-lockstep-serde-derive
2023-08-23 16:17:23 -07:00
David Tolnay
fc04d1219a
Remove useless discard of function argument that is used
2023-08-23 16:05:07 -07:00
David Tolnay
3c7dd6fc1e
Release 1.0.185
2023-08-20 21:41:21 -07:00
David Tolnay
151b45ae36
Release 1.0.184
2023-08-20 19:49:55 -07:00
soqb
2ea7e1300f
guarantee serde is in lockstep with serde_derive
2023-08-21 00:53:22 +01:00
David Tolnay
8d3a03288b
Treat unmatched non-exhaustive remote variant as serde(skip)
2023-08-13 21:14:33 -07:00
David Tolnay
05a5b7e3c6
Release 1.0.183
2023-08-06 21:00:14 -07:00
Louis Dupré Bertoni
9c864f0b02
Add forward impl for OsStr
2023-08-06 19:41:19 +03:00
David Tolnay
b6685cf9dd
Release 1.0.182
2023-08-05 22:16:46 -07:00
David Tolnay
57dc0ee769
Release 1.0.181
2023-08-03 16:58:45 -07:00
David Tolnay
5e102c4da1
Relocate private size_hint module
...
Let's keep crate::__private for only things that *need* to be accessible
to the macro-generated code. Size_hint can be pub(crate).
2023-08-03 16:53:44 -07:00
David Tolnay
ef4f860384
Improve "expecting" message of adjacently tagged enum variant
2023-08-01 22:49:44 -07:00
David Tolnay
9bd52ec5c1
Inline AdjacentlyTaggedEnumVariant::new
2023-08-01 22:38:47 -07:00
David Tolnay
5cdd82d41e
Remove Serializer from name of private type that is not a Serializer
2023-08-01 22:26:04 -07:00
David Tolnay
110bf10481
Condense AdjacentlyTaggedEnummVariantVisitor implementation
2023-08-01 22:26:03 -07:00
David Tolnay
43035f6f37
Merge pull request #2505 from Baptistemontan/rework_adjacently_tagged_enum
...
Revisit of the representation of adjacently tagged enums tag
2023-08-01 22:25:31 -07:00
Baptiste de Montangon
957ef206d1
Revisit of the representation of adjacently tagged enums tag
2023-07-31 20:53:02 +02:00
David Tolnay
2023cf345f
Adopt tool attrs for clippy lint level attributes
...
Requires rustc 1.31+.
2023-07-31 11:39:31 -07:00
David Tolnay
033d05f70b
Release 1.0.180
2023-07-31 11:16:12 -07:00
David Tolnay
8a8a8a70ee
Delete tombstones of the __private module
...
These are previous names of the `__private` module -- first
`serde::export` then `serde::private` then `serde::__private` -- in all
cases marked `doc(hidden)` and documented as not public API. Leaving a
tombstone made rustc give a better diagnostic "module is private" rather
than "unresolved import". But the rename to `__private` was 2.5 years
ago in dd1f4b483e so it's unlikely anyone
is still benefiting from the tombstone at this point.
2023-07-30 22:44:59 -07:00
David Tolnay
0d7349fa4e
Resolve ambiguous core import on rustc 1.64 through 1.71
...
In 1.72+, this is fixed by https://github.com/rust-lang/rust/pull/112086 .
error[E0659]: `core` is ambiguous
--> serde/src/lib.rs:227:13
|
227 | pub use core::ffi::CStr;
| ^^^^ ambiguous name
|
= note: ambiguous because of multiple potential import sources
= note: `core` could refer to a built-in crate
= help: use `::core` to refer to this crate unambiguously
note: `core` could also refer to the module defined here
--> serde/src/lib.rs:166:5
|
166 | / mod core {
167 | | #[cfg(not(feature = "std"))]
168 | | pub use core::*;
169 | | #[cfg(feature = "std")]
170 | | pub use std::*;
171 | | }
| |_____^
= help: use `self::core` to refer to this module unambiguously
2023-07-30 22:06:18 -07:00
David Tolnay
830528d5b1
Update to 2018 edition
2023-07-30 21:45:35 -07:00
David Tolnay
ab90fbc7c9
Apply 'cargo fix --edition'
2023-07-30 21:42:57 -07:00
David Tolnay
3eec111e8f
Delete support for compilers without crate::-based module system
2023-07-30 21:42:57 -07:00
David Tolnay
9388433642
Rename 'try!' macro to 'tri!' in preparation for 2018 edition
...
Because 'try' is a keyword in 2018+.
2023-07-30 21:29:53 -07:00
David Tolnay
a57a324d72
Delete support for compilers without NonZero integer types
2023-07-30 21:14:32 -07:00
David Tolnay
92e91b3557
Delete support for compilers without Iterator::try_for_each
2023-07-30 21:14:31 -07:00
David Tolnay
4dcf791706
Delete support for compilers without inclusive range accessors
2023-07-30 21:11:43 -07:00
David Tolnay
e77900fb94
Update integer128 case in build script
2023-07-30 21:11:09 -07:00
David Tolnay
1b14cadf20
Delete support for compilers without core::ops::Bound
2023-07-30 21:11:02 -07:00
David Tolnay
4f59cd217a
Delete support for compilers without core::time
2023-07-30 21:10:49 -07:00
David Tolnay
27c8b2d66a
Delete support for compilers without dynamically sized Rc construction
2023-07-30 20:48:27 -07:00
David Tolnay
89976c2712
Delete support for compilers without PathBuf::into_boxed_path
2023-07-30 20:48:27 -07:00
David Tolnay
c91737fef1
Delete support for compilers without CString::into_boxed_c_str
2023-07-30 20:48:27 -07:00
David Tolnay
a100719bc6
Delete support for compilers without core::cmp::Reverse
2023-07-30 20:48:27 -07:00
David Tolnay
9a0e149225
Sort version checks in build.rs
2023-07-30 20:48:27 -07:00
David Tolnay
9350927903
Delete support for compilers without std::collections::Bound
2023-07-30 20:48:27 -07:00