rust-lang / rust-lang/rust

universally directly depend on serde_derive instead of accessing it through serde.

Open
#135,647 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-cleanup T-bootstrap
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

bootstrap does this in order to flatten its dependencies and improve build times, but since other crates (like compiletest and rustdoc) use the derive feature flag, i believe this means serde has to be built twice to use any of these programs.

wouldn't it be best to always use the same set of feature flags to serde?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the bootstrap dependency setup and compare how compiletest and rustdoc use serde's derive feature. Trace whether these components build separate serde copies, then verify that the dependency declarations use a consistent serde and serde_derive configuration without worsening build behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
build-system
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.