Skip to content
Myr

Merge pull request #2973 from dtolnay/timings

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Illustrate build timings in serde_core readme

authored by David Tolnay · committed by GitHub · parents 9cf3f2e, 900c922 · Browse files · 2 files+36 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+36 added−2 removed

  • other:+36 added−2 removed

2 files+36 added−2 removed

modified:serde_core/src/lib.rs+19 added-1 removed
5 unmodified lines
6//!7//! In crates that derive an implementation of `Serialize` or `Deserialize`, you8//! must depend on the [`serde`] crate, not `serde_core`.9//!10//! [`serde`]: https://crates.io/crates/serde11//!12//! In crates that handwrite implementations of Serde traits, or only use them13//! as trait bounds, depending on `serde_core` is permitted. But `serde`14//! re-exports all of these traits and can be used for this use case too. If in15//! doubt, disregard `serde_core` and always use `serde`.16//!15//! [`serde`]: https://crates.io/crates/serde17//! Crates that depend on `serde_core` instead of `serde` are able to compile in18//! parallel with `serde_derive` even when `serde`'s "derive" feature is turned on,19//! as shown in the following build timings.20//!21//! <br>22//!23//! <table>24//! <tr><td align="center">When <code>serde_json</code> depends on <code>serde</code></td></tr>25//! <tr><td><img src="https://github.com/user-attachments/assets/78dc179c-6ab1-4059-928c-1474b0d9d0bb"></td></tr>26//! </table>27//!28//! <br>29//!30//! <table>31//! <tr><td align="center">When <code>serde_json</code> depends on <code>serde_core</code></td></tr>32//! <tr><td><img src="https://github.com/user-attachments/assets/6b6cff5e-3e45-4ac7-9db1-d99ee8b9f5f7"></td></tr>33//! </table>3435////////////////////////////////////////////////////////////////////////////////3637// Serde types in rustdoc of other crates get linked to here.
236 unmodified lines
modified:serde_core/README.md+17 added-1 removed