Rollup merge of #141989 - aDotInTheVoid:sin-sooner, r=GuillaumeGomez

rustdoc-json-type: Depend on `serde` and `serde_derive` seperately

Before this commit, serde_derive is built before serde. But serde does not depend on serde_derive, so that is not needed. Instead, build serde and serde_derive in parallel.

This speeds up compilation for users depending on rustdoc-json-types out of tree.

Imports: https://github.com/rust-lang/rustdoc-types/pull/49

CC ``@Enselic``

r? ``@GuillaumeGomez``
This commit is contained in:
Matthias Krüger 2025-06-05 16:02:02 +02:00 committed by GitHub
commit 7689558134
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View file

@ -4673,6 +4673,7 @@ dependencies = [
"bincode",
"rustc-hash 2.1.1",
"serde",
"serde_derive",
"serde_json",
]

View file

@ -10,7 +10,8 @@ path = "lib.rs"
default = ["rustc-hash"]
[dependencies]
serde = { version = "1.0", features = ["derive"] }
serde = "1.0"
serde_derive = "1.0"
rustc-hash = { version = "2.0", optional = true }
[dev-dependencies]

View file

@ -21,7 +21,7 @@ use std::path::PathBuf;
#[cfg(feature = "rustc-hash")]
use rustc_hash::FxHashMap as HashMap;
use serde::{Deserialize, Serialize};
use serde_derive::{Deserialize, Serialize};
pub type FxHashMap<K, V> = HashMap<K, V>; // re-export for use in src/librustdoc