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
Simon Sapin
defd8853b1
Implement for std::num::NonZero* on Rust 1.28+
...
… regardless of the `unstable` feature. Fix #1274 .
2018-05-24 18:06:24 +02:00
David Tolnay
c80f9238d7
Link to i128 announcement
2018-05-18 12:34:36 -07:00
David Tolnay
9f114548f4
Revert "Use version_check crate instead of handcrafted version parsing"
...
This reverts commit 8890061f82 .
2018-05-18 11:48:05 -07:00
Oliver Schneider
8890061f82
Use version_check crate instead of handcrafted version parsing
2018-05-18 14:41:40 +02:00
David Tolnay
2c05518810
Build script that does nothing
...
Eventually we will want a build script that enables Serde impls for i128
and u128. As a first step here is a build script that does nothing to
see whether we can roll this out without breaking anyone's workflow,
without having a supported feature at stake in the event that it needs
to be rolled back.
2018-05-15 14:41:38 -07:00