David Tolnay
1a3a49ce7c
Delete 1.13.0 from CI
...
For some reasons old rustc 1.18.0 and older started failing to parse the
registry overnight.
error: An unknown error occurred
Caused by:
Feature `pretty` depends on `syntex_syntax` which is not an optional dependency.
Consider adding `optional = true` to the dependency
2023-01-12 21:17:42 -08:00
David Tolnay
6b948111ca
Merge pull request #2355 from Niki4tap/remove_appendix
...
Remove appendix from LICENSE-APACHE
2022-12-30 11:47:38 -08:00
Niki4tap
6adfdc56e5
Remove appendix from LICENSE-APACHE
2022-12-30 22:32:44 +03:00
David Tolnay
61531ddd9e
Link to serde_starlark data format
2022-12-26 22:06:47 -08:00
David Tolnay
ccf9c6fc07
Release 1.0.152
2022-12-26 09:21:13 -08:00
David Tolnay
b25d0ea7f9
Link to Hjson data format
2022-12-26 09:20:12 -08:00
David Tolnay
4f4557fd05
Link to bencode data format
2022-12-26 09:18:48 -08:00
David Tolnay
bf400d6799
Link to serde_tokenstream data format
2022-12-26 09:14:59 -08:00
David Tolnay
4d2e36d19b
Wrap flexbuffers bullet point to 80 columns
2022-12-26 09:14:23 -08:00
David Tolnay
df6310e5f5
Merge pull request #2347 from dtolnay/docsrs
...
Replace docs.serde.rs links
2022-12-18 11:55:43 -08:00
David Tolnay
938ab5ddec
Replace docs.serde.rs links with intra-rustdoc links
2022-12-18 11:48:57 -08:00
David Tolnay
ef5a0de384
Point documentation links to docs.rs instead of docs.serde.rs
2022-12-18 11:45:23 -08:00
David Tolnay
5d186c77a6
Opt out -Zrustdoc-scrape-examples on docs.rs
...
I'd like a chance to audit all the code that rustdoc is inserting into
the docs. Currently I am skeptical that showing serde's internal usages
of APIs is a net benefit to the public documentation. I am also
skeptical that quite so many examples are needed, and that they should
be featured so prominently in comparison to handwritten docs. Lastly I
wish there were a way to turn this behavior off on a more granular
basis.
2022-12-18 09:31:17 -08:00
David Tolnay
44bf3633af
Release 1.0.151
2022-12-16 10:35:12 -08:00
David Tolnay
f261184416
Merge pull request #2344 from dtolnay/coreerror
...
Make StdError identical to core::error::Error on feature="unstable"
2022-12-16 10:22:04 -08:00
David Tolnay
df40f80fcf
Make StdError identical to core::error::Error on feature="unstable"
2022-12-16 10:11:37 -08:00
David Tolnay
e7060ba83d
Merge pull request #2342 from atouchet/badges
...
Update build status badge
2022-12-15 17:54:07 -08:00
Alex Touchet
d98f0eea3d
Update build status badge
2022-12-15 17:17:05 -08:00
David Tolnay
4f157a8b81
Prevent build.rs rerunning unnecessarily on all source changes
2022-12-12 14:37:41 -08:00
David Tolnay
d493649f52
Release 1.0.150
2022-12-11 16:24:46 -08:00
David Tolnay
0e947e6c3b
Merge pull request #2338 from serde-rs/atomic
...
Deduplicate atomic_impl implementations and atomic_impl calls from PR 2337
2022-12-11 16:22:28 -08:00
David Tolnay
9249dab54c
Deduplicate atomic_impl macro calls
2022-12-11 16:12:51 -08:00
David Tolnay
7440e56c53
Deduplicate atomic_impl macro implementations
2022-12-11 16:09:26 -08:00
David Tolnay
0d79306285
Update atomic_impl macros to have same input syntax in all cfgs
2022-12-11 16:01:58 -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
David Tolnay
692ac99c69
Format PR 2337 with rustfmt
2022-12-11 15:48:30 -08:00
David Tolnay
86161ce15f
Adjust spacing in some macro matchers
2022-12-11 15:48:30 -08:00
David Tolnay
5361c790bb
Merge pull request #2337 from badboy/use-target_has_atomic-when-available
...
Use `target_has_atomic` on Rust 1.60+ to enable atomic (de)serialization
2022-12-11 15:42:00 -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
David Tolnay
3aec2a96a8
Merge pull request #2334 from dtolnay/mapimpl
...
Reduce trait bounds in HashMap and BTreeMap serialize
2022-12-04 23:27:03 -08:00
David Tolnay
227d039b1e
Reduce trait bounds in HashMap and BTreeMap serialize
2022-12-04 23:18:02 -08:00
David Tolnay
0353354d61
Release 1.0.149
2022-12-04 23:11:59 -08:00
David Tolnay
34ae0422f4
Merge pull request #2333 from jonasbb/remove-trait-bounds
...
Remove some Serialize trait bounds
2022-12-03 09:22:27 -08: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
7766103174
Release 1.0.148
2022-11-27 17:58:18 -08:00
David Tolnay
30f7c7110d
Merge pull request #2331 from dtolnay/remote
...
Improve error message on remote derive duplicate generics
2022-11-27 17:57:35 -08:00
David Tolnay
50354c2d0b
Improve error message on remote derive duplicate generics
2022-11-27 17:48:48 -08:00
David Tolnay
c4f67e679f
Add ui test of duplicate generics in remote derive
2022-11-27 17:48:48 -08:00
David Tolnay
0daafe423f
Merge pull request #2330 from dtolnay/remote
...
Fix generated Into conversion involving generic remote derive with getter
2022-11-27 17:48:37 -08:00
David Tolnay
37021910c9
Fix Into conversion involving generic remote derive with getter
2022-11-27 17:18:10 -08:00
David Tolnay
7328b34810
Add test of generic remote derive with getter
...
Currently fails to compile.
error[E0107]: missing generics for struct `StructGeneric`
--> test_suite/tests/test_remote.rs:181:18
|
181 | #[serde(remote = "remote::StructGeneric")]
| ^^^^^^^^^^^^^^^^^^^^^^^ expected 1 generic argument
|
note: struct defined here, with 1 generic parameter: `T`
--> test_suite/tests/test_remote.rs:78:16
|
78 | pub struct StructGeneric<T> {
| ^^^^^^^^^^^^^ -
help: add missing generic argument
|
181 | #[serde(remote = StructGeneric<T>)]
| ~~~~~~~~~~~~~~~~
2022-11-27 17:17:52 -08:00
David Tolnay
fabbd2b097
Merge pull request #2329 from dtolnay/safety
...
Revert Buf::as_str safety change from PR 2319
2022-11-27 17:05:41 -08:00
David Tolnay
6814f978d7
Revert Buf::as_str safety change from PR 2319
2022-11-27 16:56:31 -08:00
David Tolnay
4ea403c54a
Merge pull request #2328 from dtolnay/remote
...
Handle remote type written without turbofish
2022-11-27 16:41:23 -08:00
David Tolnay
f4f6b5af3a
Remove unneeded turbofish from remote attr test
2022-11-27 16:32:06 -08:00
David Tolnay
2062a3c16d
Handle remote type written without turbofish
2022-11-27 16:32:06 -08:00
David Tolnay
9a53bd9125
Add tests of concrete def of generic remote type
2022-11-27 16:05:56 -08:00
David Tolnay
4873b48b02
Time out workflows after 45 minutes
...
GitHub's default timeout is 6 hours. Recently some of my GitHub Actions
jobs have started randomly stalling for that long, which is inconvenient
because it ties up a chunk of my runner quota. It apepars to be very
rare for a job to recover after stalling. It's better to time out
quicker and retry on a different runner.
2022-11-25 18:56:19 -08:00