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
David Tolnay
c42e7c8012
Reflect serde_derive required compiler in build script and rust-version metadata
2023-03-17 17:34:46 -07:00
David Tolnay
7e9826e17b
Add link to core CStr stabilization announcement
2023-03-11 12:57:16 -08:00
Charles-Xavier Roy
f7636428ed
Add check for rust version
2023-02-17 16:25:16 -05:00
David Tolnay
4f157a8b81
Prevent build.rs rerunning unnecessarily on all source changes
2022-12-12 14:37:41 -08:00
David Tolnay
37faaf295e
Mention target_has_atomic stabilization
2022-12-11 15:56:31 -08:00
David Tolnay
650358fa00
Replace obsolete comment about target_has_atomic support
2022-12-11 15:55:19 -08:00
David Tolnay
6159ead404
Invert use_target_has_atomic cfg
...
This way, a build system that does not want to run Cargo build scripts
can build serde without any cfgs defined, and get the most modern
feature set.
2022-12-11 15:51:19 -08:00
Jan-Erik Rediger
126730edc8
Use target_has_atomic on Rust 1.60+ to enable atomic (de)serialization
2022-12-11 13:34:07 +01:00
Jonas Bushart
cc128feb4c
Remove some Serialize trait bounds
...
Containers for the most part do not have any trait requirements for
iterating over them. So these bounds are unnecessary when Serializing
only.
This relaxation is part of Rust 1.34
2022-12-03 16:03:37 +01:00
David Tolnay
55a7cedd73
Invert all build.rs cfgs
...
This allows non-Cargo builds to generally not get involved in cfgs. As
long as one is using a reasonably recent toolchain, no cfgs need to be
set and you'll get a fully-featured build.
2022-01-01 21:09:49 -08:00
David Tolnay
b85e28166c
Update path to rustc target spec files
2021-12-16 11:05:58 -08:00
Avimitin
84fdc7df69
Enable atomic64 on riscv64 arch
...
Signed-off-by: Avimitin <avimitin@gmail.com >
2021-12-14 20:30:28 +08:00
David Tolnay
75d8902371
Use try_fold in default implementation of collect_seq, collect_map
2021-08-21 14:00:51 -07:00
Manish Goregaokar
082e18f9a1
Rust supports i128/u128 on emscripten post Rust 1.40
2021-08-20 21:57:06 -07:00
David Tolnay
697b082e90
Touch up PR 1997
2021-03-05 19:48:40 -08:00
Cary Yang
4118cec731
Prevent various panics when deserializing malformed SystemTime
2021-03-05 17:52:51 -08:00
David Tolnay
b0cc213e57
Omit derive helpers in versions older than serde_derive msrv
2021-01-24 20:26:56 -08:00
David Tolnay
7351e0e55a
Link to feature announcements where available
2020-06-19 13:30:14 -07:00
David Tolnay
a00aee1495
Use a dedicated cfg for PathBuf::into_boxed_path
2019-10-27 13:38:25 -07:00
Jan Alexander Steffens (heftig)
b8772a1e40
Deserialize Box<Path> through PathBuf::into_boxed_path
...
Including Rc<Path> et al.
Fixes https://github.com/serde-rs/serde/issues/1633
2019-10-22 22:31:51 +02:00
Flaise
78c7f09e28
Add build gate for nonzero signed integers so rustc <1.34 still works
2019-07-28 11:44:31 -05:00
David Tolnay
f249e72162
Provide try_from only on 1.34+
2019-07-17 12:21:18 -07:00
David Tolnay
7b0e06c825
Provide 32 bit atomic impls for emscripten
2019-07-17 11:44:24 -07:00
James Brown
01fade764c
replaced one too many _ with -
2019-07-17 09:57:53 -07:00
James Brown
210c2419be
conservatively limit atomic features
2019-07-17 09:19:03 -07:00
James Brown
4e5f63ff45
gate atomic serde on rust 1.34 or higher
2019-07-12 13:44:42 -07:00
Artem Vorotnikov
71fe2a5534
Reverse impls available for Rust >=1.19
2019-02-20 12:56:35 +03:00
David Tolnay
8463bfc1e5
Remove as yet unrequested range impls
2019-02-01 21:04:06 -08:00
Dmitry Shlagoff
18b1604fc8
Fix compatibility issues with syntax and Bound
2019-01-30 00:41:03 +07:00
David Tolnay
a8a54c0568
Remove 1.26-dev docs.rs workaround
...
They are now building with 1.31.0-nightly.
2018-11-11 12:13:25 -08:00
Jan Bujak
7385b50249
Disable i128 integers on Emscripten targets
2018-08-24 00:02:40 +02:00
Caio
8eb195edf0
Fix tests
2018-08-05 17:38:41 -03:00
David Tolnay
b6c4cfec37
Support Duration in no-std mode on new compilers
2018-06-03 00:55:58 -07:00
David Tolnay
34a7108b73
Second attempt at workaround for docs.rs compiler
2018-05-30 00:17:02 -07:00
David Tolnay
8b4f9c47c4
Build script rustc-cfg strings are not public API
2018-05-26 17:23:09 -07:00
David Tolnay
06d8a44f18
Move unimportant code out of build script main
2018-05-26 17:18:14 -07:00
David Tolnay
320a059e4b
Stabilize impls for dynamically sized Rc / Arc
2018-05-26 10:06:29 -07:00
David Tolnay
7ec3cac7d6
Stabilize Deserialize for Box<CStr>
2018-05-26 09:48:50 -07:00